In Matlab, we sometimes need to delete a row or a column in the matrix, which can be deleted by the following methods:
a = [ 1 2 3 4 5 6 7 8 9]; a(2,:) = []; % Delete row 2 a(:,2) = []; % Delete col 2
In Matlab, we sometimes need to delete a row or a column in the matrix, which can be deleted by the following methods:
a = [ 1 2 3 4 5 6 7 8 9]; a(2,:) = []; % Delete row 2 a(:,2) = []; % Delete col 2