converting a 3d data into 2d

조회 수: 10 (최근 30일)
Talha Khan
Talha Khan 2015년 5월 25일
편집: Azzi Abdelmalek 2015년 5월 25일
hi all,
I had a 3d array <1x1x146226> I want to convert this array into <1x146226> to plot it. Can anyone tell me how to do it.
Thanks and humble Regards
  댓글 수: 1
Stephen23
Stephen23 2015년 5월 25일
The general solution to this is to use reshape.

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 5월 25일
편집: Azzi Abdelmalek 2015년 5월 25일
if a is your array
out=a(:)'
You can also use reshape for more general cases

추가 답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 25일
squeeze()

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by