MATLAB: How to Convert 3d matrix to row matrix??

3d matrix

I have a 3d matrix in the workspace variable named WT.dec{1,1}, I need it to be converted to single dimention row matrix. How can do this???

Best Answer

A = rand(10,10,10);
B = reshape(A,[1,1000]);