필터 지우기
필터 지우기

Permute problem - unexpected Matlab operator

조회 수: 3 (최근 30일)
Grant
Grant 2013년 4월 17일
I have a 3d dimensional array 'totmelt' that is 112 x 1381 x 601.
I want to transpose it so that it's 1381 x 601 x 112.
My understanding of permute is that this should work:
EDU>> permute (totmelt, 2 3 1);
or this:
EDU>> > melt = permute(totmelt, [2 3 1]);
maybe this:
EDU>> > melt = size(permute(totmelt, [2 3 1]));
but all return this error:
Error: Unexpected MATLAB operator.
Does anyone know what the problem is? Thanks

채택된 답변

Kye Taylor
Kye Taylor 2013년 4월 17일
편집: Kye Taylor 2013년 4월 17일
The first command is invalid.
The second command will work - and is what you want - once you remove the extra > at the beginning.
The third command is not what you want, but an error is returned due to the extra >

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