how reshape this matrix in matlab? thx
Show older comments
I have this matrix: for example:

into:

how can I do it without using loop? can mat2cell be useful in this case?
many thanks!!
1 Comment
Accepted Answer
More Answers (1)
the cyclist
on 4 Jan 2015
Edited: the cyclist
on 4 Jan 2015
If your original matrix is A, then transpose it:
B = A'
[This is actually the complex conjugate transpose, but assuming your matrix is real, that's OK. You can read more with "doc transpose" and "doc ctranspose".]
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!