MATLAB: Do a matrix,array matrix arraymatrix manipulation I have a matrix A=[5 4 3; 1 8 2; 6 9 7] and i want to insert it into one array B=[5 4 3 1 8 2 6 9 7].How i will do it? Best Answer This works:B = reshape(A', 1, []); Related SolutionsMATLAB: How to make a 3×3 matrix a 9×1 matrix reshape(x,9,1)or x(:) % this creates a column vector out of a matrix MATLAB: Breaking up a matrix/array codes = matrix(:,1); code_list = unique(codes); for i = 1:numel(code_list) new{i} = matrix(code_list(i) == codes,:); end Related QuestionHow do i go along 2Darray matrix from middle of arrayMatrix/Array Multiplication problem in SimulinkCounting elements of a matrix/array
Best Answer