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일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2014년 5월 8일

편집:

2014년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by