Convert 6381x3 double to 1x3x6381 double?

조회 수: 9 (최근 30일)
C Smyth
C Smyth 2018년 5월 14일
편집: Stephen23 2018년 5월 14일
I have a column of data in the form of 6381x3 but I want it in the form of 1x3x6381. Is this possible? The image shows the output I want.

채택된 답변

Stephen23
Stephen23 2018년 5월 14일
편집: Stephen23 2018년 5월 14일
You can use permute:
permute(arr,[3,2,1])
Depending on the order of the elements, you might also need a few reshape operations.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by