hi, if you are trying to transform a matrix into a single vector you sould't use if's.
there is a very easy way to do that.
if your matrix a = [1 2 3; 4 5 6], the command b=a(:) will generate a matrix b that looks like this: [1 4 2 5 3 6]'
Tuesday, February 19, 2008
how to turn a matrix into a single vector with matlab
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment