How to concatenate rows ?

조회 수: 61 (최근 30일)
Andre
Andre 2014년 4월 25일
답변: Azzi Abdelmalek 2014년 4월 25일
Hi, there is a "not looping" way to concatenate rows into a 1 line ?
Example:
A=[[ 1 2 3 4 ] ;
[ 5 6 7 8 ] ;
[ 9 10 11 12 ]];
To:
A=[ 1 2 3 4 5 6 7 8 9 10 11 12 ]
Thanks,
André

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 25일
reshape(A',1,[])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by