MATLAB: How to get one vector from several matrices matrixvector Hi; I have matrix and vector and I want to put them in one vector; For example A=[1,2;3,4]; B=[5,6];C=[7;8]; I want them in one vector S=[1,2,3,4,5,6,7,8] Thanks in advance Best Answer S = [reshape(A.',[],1);B(:);C(:)].'; Related SolutionsMATLAB: If i have matrix i want to convert it to vector transpose(reshape(b,3,[])) MATLAB: How to multiply a vector with each column of a matrix A = [1 4 7 10; 2 5 8 11; 3 6 9 12];b = [1;2;3;4];C = bsxfun(@times,A,b.') Related QuestionHow to integrate matricesMixing and merge two vectorsHow to assemble matricesHow to reshape a matrix to a vectorCan you index matrices“Kronecker” of varying dimensionsHow to split one big matrix in several matrices
Best Answer