Move matrix rows and columns
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a n*n matrix. I want to convert it to n^2*1 matrix. for example: A=[a b;c d] result B=[a;b;c;d]
0 comentarios
Respuesta aceptada
Matt J
el 27 de Oct. de 2012
B=reshape(A.',[],1);
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!