how to convert a matrix into a vector code example Example: transform a vector into a matrix M = reshape(V, 3, 3).';