MATLAB: How to insert values from the vertical 3rd matrix dimension in between the rows of the vertical 1st and 2nd dimension

brute forceinsertmatrixmatrix manipulationpermutereshape

For matrix 210x2x4 I want to generate a 840×2 matrix, where in this order:
[matrix(1,:,1);matrix(1,:,2);matrix(1,:,3);matrix(1,:,4);matrix(2,:,1);matrix(2,:,2);....]
I'm still not clear how to insert values between values in matrices, any suggestions?

Best Answer

reshape(permute(Mtx,[2 3 1]),2,[])'