필터 지우기
필터 지우기

convert matrix and horizontally catenate

조회 수: 4 (최근 30일)
Damith
Damith 2014년 7월 16일
댓글: Damith 2014년 7월 16일
Hi,
I need to convert this matrix A to
A=[1 2 3 4 5 6
7 8 9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24];
A = 1 2 3 4 5 6 7 8 9 10...24;
How can I perform this in matlab? Any help is appreciated.
Thanks.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 16일
편집: Azzi Abdelmalek 2014년 7월 16일
A=A'
A=A(:)'
Or
reshape(A',1,[])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by