Well, you could
reshape(YourMatrix, size(YourMatrix,3), [])
but it is quite unlikely that is what you want. You probably want
reshape(permute(YourMatrix, [3 1 2]), size(YourMatrix,3), [])
This would take each original 30 x 30 plane of numbers and make it into a row.
Best Answer