The following code transforms a Matrix A
A =
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
into a vector, in the order shown in A.
reshape(flipud(rot90(A)),[],1)
just another blog. here you'll find my experiences with Matlab/Simulink, vba, LaTeX and Mac OS X.
The following code transforms a Matrix A
No comments:
Post a Comment