MATLAB: How to reshape a matrix matrix Hello , i've got a k by l by m by n by o matrix and i want to reshape it into a vector.. Any ideas? Best Answer A = zeros(k,l,m,n,o);B = A(:); % column vectorC = B.'; % row vectorFor more general reshaping, see the reshape command. Related SolutionsMATLAB: Multiplying a Matrix with every column of another matrix Do you mean you just want to do standard matrix multipication?C = A * BOr did I misunderstand? MATLAB: Reshaping A = [1 0 1 0 0 0 1];B = [1 1 1 0 0 0 1];s = reshape([A;B],1,[]) Related QuestionHow to multiply each row of a matrix with every row of another matrix elementwiseReshapeCan I multiply a Vector with a MatrixHow to reshape a vector in a particular wayMatrix reshaping
Best Answer