-
1 Comment
Stone Liu
on 12 Dec 2019
two NaNs are not equal to each other, using isnan to detect NaNs. Thus,
a = a(all(a==a,2),:);
a = a(~any(isnan(a),2),:);
a(any(a~=a,2),:) = [];
a(any(isnan(a),2),:) = [];
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!