How do i convert this data

조회 수: 8 (최근 30일)
Aycan Nehir
Aycan Nehir 2019년 11월 15일
댓글: Aycan Nehir 2019년 11월 15일
I have a data as like A=[1 2 3;4 5 6;7 8 9] How can i convert it to B=[1 2 3 4 5 6 7 8 9]
A=1 2 3
4 5 6
7 8 9
B=horzcat(A(1,:),A(2,:),A(3,:)) i made this. its ok but my original data has too large dimension. i cant write as like this one by one.
Is there anybody help about that ?

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 15일
reshape(A.',1,[])
  댓글 수: 1
Aycan Nehir
Aycan Nehir 2019년 11월 15일
That's what i want. Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (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