MATLAB: How to change a 3 dimensional matrix to 2 dimensinal

image processingmatrix manipulation

Hello, I have a matrix of size 1x512x512…. I need to convert it to 2 dimensional form of 512×512, for using imagesc… Can anyone help?
Thanks

Best Answer

If A is your matrix, you can use
squeeze(A)
Related Question