MATLAB: How to convert a vector to a matrix in Matlab How to convert a vector to a matrix in Matlab? Best Answer a=[1 2 3 4 5 6 7 8 9]reshape(a,3,3) Related SolutionsMATLAB: If i have matrix i want to convert it to vector transpose(reshape(b,3,[])) MATLAB: Convert vector to matrix Try this:A = [1,2,3,4,5,6];B = reshape(A(:), 3, []).'B = 1 2 3 4 5 6 Related QuestionOpposite of :Converting Vector to matrix.Converting a vector to matrixConvert matrix in single column/row vectorConverting vector to matrix
Best Answer