how to convert a matrix into one single column vector
Show older comments
I am trying to convert a matrix into one column vector. For example, if I have A=[1 2 3;3 4 5;0 2 5] and I want to transpose all the rows and combine them to get one single column vector like B=[1;2;3;3;4;5;0;2;5]. Anyone has an idea on how to do it, please help me.
Accepted Answer
More Answers (1)
Souarv De
on 18 Sep 2019
1 vote
Thanks
Categories
Find more on Creating and Concatenating Matrices 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!