Matlab中,我们有时候要删除矩阵中的某行某列,可以采用下列方法进行删除:
a = [ 1 2 3 4 5 6 7 8 9]; a(2,:) = []; % Delete row 2 a(:,2) = []; % Delete col 2
Matlab中,我们有时候要删除矩阵中的某行某列,可以采用下列方法进行删除:
a = [ 1 2 3 4 5 6 7 8 9]; a(2,:) = []; % Delete row 2 a(:,2) = []; % Delete col 2