MATLAB: Delete matrix row with certain value row how can i remove the rows with a certain number say, 2? Best Answer M = magic(3);M(any(M==2,2),:) = [] Related SolutionsMATLAB: Delete duplicated row in a matrix I = ~ismember(a(:,1:2),b(:,1:2),'rows'); a = a(I,:) MATLAB: Creating a submatrix from a matrix A= [ 1 2 3 4; 5 6 7 8; 1 3 5 7; 2 4 6 8; ]B=A([1 2 4],[2 3]) Related QuestionDeleting certain data from a graphDelete row if in column 1 nad 2 are the same valuesDelete certain elements in a matrixHow to delete rows from a matrix when the values of certain columns are equalDeleting certain columns in a matrixDeleting rows until a certain point
Best Answer