How to Convert 3d matrix to row matrix???
Show older comments
I have a 3d matrix in the workspace variable named WT.dec{1,1}, I need it to be converted to single dimention row matrix. How can do this???
Accepted Answer
More Answers (1)
Vladimir Sovkov
on 8 Apr 2020
a=rand(2,2,2) % a sample 3D matrix a
b=a(:)' % is turned to the 1D row matrix b
1 Comment
Mehul Jain
on 8 Apr 2020
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!