MATLAB: How to delete a row in matrix matricesmatrix For example: a=[10; 2; 3; 4; 44; 5; 5; 56] i need to delete first element,in this case, i need to delete '10' how? Best Answer a(1)=[]; Related SolutionsMATLAB: Delete rows from matrix Just use some basic MATLAB logical indexing:>> X = M(M(:,1)~=0,:)X = 1 1 2 6 3 5 5 55 6 56 7 69 11 2 MATLAB: Deleting rows in a matrix [x2u, x2u_idx] = unique(x2, 'stable');new_x = x(x2u_idx, :); Related QuestionDelete rows from matrix according to another matrixDelete rows from matrixHow to delete specific rows in a matrixDelete rows at intervalsHow to delete specific rows in this matrixDelete rows from matrix
Best Answer