MATLAB: Converting 2D matrix to 3D matrix

2d matrix to 3d matrix conversion

I have a 3529 x 2 2D matrix. how can I convert it into a 3D matrix? please help.

Best Answer

out = reshape(your_matrix,size_of_your_new_3D_matrix)