MATLAB: Multiple columns to one column << << >>Hi I am kinds of practicing the matlab code to edit some data I am trying to edit the multiple columns of data to one columns like the pictures above. Anyone help me with this problem?? >> Best Answer A=[1 2 3;4 5 6;7 8 9];B=A(:)% Or Use reshape functionB=reshape(A,[],1) Related SolutionsMATLAB: Combine two columns into one by first two rows A two rows B and so on C = reshape([reshape(A,2,[]);reshape(B,2,[])],[],1);This depends on the lengths of the column vectors A and B being the same multiple of 2. MATLAB: Fprintf multiple column string I figured out how to do it... for i=1:length(S(:,1)) fprintf(fileID, '%s ',S(i,:)'); fprintf(fileID,'\n'); endCheers! Related QuestionReferring to multiple columnsHow to specifically select columns from a matrixLogical index multiple columnsHow to copy rows of a matrix to convert it into single row?How to write multiple rows in a multiple column way without changing the order
Best Answer