I need to manipulate this matrix

A=[10 20 30 40;50 60 70 80;90 100 110 120]
%I need to order each rows vertically like that;
B=[10;20;30;40;50;60;70;80;90;100;110;120]

 Respuesta aceptada

José-Luis
José-Luis el 8 de Mayo de 2014
Editada: José-Luis el 8 de Mayo de 2014
B = reshape(A',1,[]);
Alternatively:
B = A';
B = B(:);

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Mayo de 2014

Editada:

el 8 de Mayo de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by