conversion of matrix into vector
Show older comments
I made an algorithm of conversion of a matrix for a vector of column but it just works for the matrix 3*4. I want that it work on is important dimension(size). All the dimensions(size)! How I make? the code :
x=[1 2 3 0;4 5 6 0;7 8 9 0];
y=x(:,1);
m=2;
while m<5
y=[y;x(:,m)];
m=m+1;
end
Accepted Answer
More Answers (2)
Categories
Find more on Convert Image Type 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!