MATLAB: How to remove rows in which at least one NaN values can found

nanrowvector

How to remove rows in which at least one NaN values can found? Is it possible to do this in one script line?

Best Answer

If m is your matrix:
m(any(isnan(m), 2), :) = []