how reshape this matrix in matlab? thx
Afficher commentaires plus anciens
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 commentaire
Réponse acceptée
Plus de réponses (1)
the cyclist
le 4 Jan 2015
Modifié(e) : the cyclist
le 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".]
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!