MATLAB: Row vector into array. arrayrow vecotr; I have this A variable made up by 1×72 double. Best Answer Francesco, you could use A(A == 0) = []; B = reshape(A,8,8)for your specially formatted matrix A, where the zeros are located at those very same positions. Related SolutionsMATLAB: Matrix manipulation: split matrix in vectors A(:) MATLAB: Manipulating cells in array. % One of the many solutions t = ismember(A,'0') A(t)=[]; Related QuestionHow many elements in one row matrixAdd new row to String Array.Multiply correspond element in cell arraysExtract image from array.Store vector data of not fixed length into a MatrixCompare the rows of an array with another one’s array
Best Answer