How to transpose a row into a column?
Mostrar comentarios más antiguos
I have a 384x32 matrix and I would like to transpose it so that the row is a column corresponding to the values on the row for example:
original table:
- a 1,2,3,4,5,6,7,8,
- b 9,10,11,12,13,14,15,16
- c 17,18,19,20,21,22,23,24
- d etc..
Desired outcome:
- a 1
- a 2
- a 3
- a 4
etc
Respuestas (3)
Sean de Wolski
el 19 de Nov. de 2013
A = A';
or
A = A.';
1 comentario
Mehmet Kaan Bozkurt
el 7 de Mzo. de 2021
Thank you.
BSantos
el 19 de Nov. de 2013
1 voto
There is a function called transpose. Maybe it helps.
Imad Berjawi
el 3 de Nov. de 2022
0 votos
A=[7,4,2;3,5,6;-1,2,1]
Categorías
Más información sobre Elementary Math en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!