I need to manipulate this matrix

1 次查看(过去 30 天)
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]

采纳的回答

José-Luis
José-Luis 2014-5-8
编辑:José-Luis 2014-5-8
B = reshape(A',1,[]);
Alternatively:
B = A';
B = B(:);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by