MATLAB: To form a single 3 D matrix using three different matrices

3d matrix

How can we form a 3D matrix using 3 different matrices. for example i have three (256×4) matrices and I have to form a single 3 Dimensional matrix using these matrices

Best Answer

If your matrices are named A, B and C, then:
D = cat(3,A,B,C);