Permute problem - unexpected Matlab operator
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!