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]

 Réponse acceptée

José-Luis
José-Luis le 8 Mai 2014
Modifié(e) : José-Luis le 8 Mai 2014

0 votes

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

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by