Converting a matrix into an array
3 views (last 30 days)
Show older comments
How would i convert a matrix into an array, where each column of numbers turns into a single element(matrix)? so all I'm left with is an array with one row and a certain number of columns?
1 Comment
Stephen23
on 6 Oct 2015
A matrix is an array already, so you either a) don't need to do anything, or b) need to explain in more detail what you are trying to do. Currently your question is not clear.
Answers (1)
Star Strider
on 6 Oct 2015
I’m not certain what you want.
Does this work in your application?
A = randi(9, 4); % Matrix
B = A(:)'; % Row Matrix Of Elements Of ‘M’
0 Comments
See Also
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!