MATLAB: How to transpose image and use permute instead

gabor

i have this code which is attached in the image and i am getting this error while performing the gabor feature extraction as it is not allowing for the transpose operation, can anyone please help me to transpose the value so that i can use it further. Thank You

Best Answer

Transpose the first two indexes:
Eleven3 = permute(Eleven3,[2 1 3]);