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]

 Akzeptierte Antwort

José-Luis
José-Luis am 8 Mai 2014
Bearbeitet: José-Luis am 8 Mai 2014

0 Stimmen

B = reshape(A',1,[]);
Alternatively:
B = A';
B = B(:);

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by