A - multidimensional vector 3x3x3. I want to change it as a 9x3 vector. How to do it in matlab?
You can do this using the reshape function .
B = reshape(A,9,3);
vector2D = cat(2,vector3D(:,:,1),vector3D(:,:,2),vector3D(:,:,3))
or
vector2D = cat(1,vector3D(:,:,1),vector3D(:,:,2),vector3D(:,:,3))
The previous ones arrange 2D vectors along the lines, and later arrange them allong colums