%for验证 new=[]; for i=1:size(old,1) if old(i,4)~=0 %assume 0所在列在第4列 new(end+1,:)=old(i,:); end end
a(a(:,2)==0,:)=[]
参考: 两种方式
京公网安备 11010502049817号