MATLAB: Delete middle rows in table table I need to delete rows 3 and 4 of this table and have the 5th and 6th rows to be rows 3 and 4. How can I do that? Best Answer table_data([3,4],:) = [];After deletion 5th and 6th rows automaticaly become 3 and 4 rows. Related SolutionsMATLAB: Delete specific rows in table T(T.cell_type~=4,:) = []; % where T is the name of your table MATLAB: Delete rows in a table Assuming you indeed have a matlab table:yourtable(yourtable.column2 == 0, :) = [];will delete all rows whose column2 is 0.If your table is actually a matrix:yourmatrix(yourmatrix(:, 2) == 0, :) = [];will do the same. Related QuestionApp Developer: delete table rowsDelete rows from matrix and tableDelete zero rows from a tableDelete rows in a .txt tableFast delete of rows in a tableTable: Delete rows that contain only zeros
Best Answer