I'm trying to use the permute function. I understand you are supposed to give it the order of dimensions you need to get it to change the order of dimensions in an array. But I get unexpected error.
clc
temp = zeros(3,4,7);
size(temp)
temp = permute(temp,[3,1,2]);
size(temp) % 4 x 7 x 3
I expect the resulting array to be 4 x 7 x 3, but I get