MATLAB: How can i reorder NxM matrix into a 1D array MATLABmatrix manipulation I am looking to take a sample matrix below. The matrix will be large and looking for fast and non looping solution. Thank you. a=[1 2 3;4 5 6;7 8 9]; reshape it into: b=[7 8 9 4 5 6 1 2 3]; Best Answer Using the reshape (link) function:b = reshape(a([3 2 1],:)', 1, [])b = 7 8 9 4 5 6 1 2 3 Related SolutionsMATLAB: How to merge two matrix into single matrix . two matrix is of size 270×13 into single matrix of 270×26 .this can be done by merging the cells alternatively.a=[1 2 3 4],b=[5 6 7 8],c=[1 5 2 6 3 7 4 8].is there any command available in matlab.help me Use a = [1 2 3 4 5 6]; b = [7 8 9 10 11 12]; c = reshape([a;b],1,[]) MATLAB: How to copy rows of a matrix to convert it into single row? Use the reshape function:A=[1 2; 3 4; 5 6; 7 8];B = reshape(A', 1, [])B = 1 2 3 4 5 6 7 8 Related QuestionHow to concatenate rowsCould anyone help me to solve the issue in the following codeFind the pair of the matrixRow Wise concatenation
Best Answer