MATLAB: Delete rows from array I have an array called yi1 It has more than 10,000 rows. How can I delete all rows from 10,000 upwards? Best Answer yi1 = your matrixyi1(10000:end,:) = []; 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: Delete rows from matrix A=[ 1 2 3;... 4 5 6;... 7 8 9;... 10 11 12]b=2;A(b,:)=[] Related QuestionDeleting rows and columnsDelete row from MatrixDelete rows at intervalsDeleting rows from arrayDelete rows from matrixHow to delete repeated rowsDelete rows- tanimoto matrix
Best Answer