This solution is outdated. To rescore this solution, sign in.
-
2 Comments
rohit more
on 11 Mar 2013
function y = removeNaN(x)
[n m] = size(x);
for i = 1 : n
maxx = max(isnan(x(i,:)));
if maxx ~= 1
y = (x(i,:))
end
end
What is Wrong With THis Code CAn SomeOne Tell ME
Tim
on 11 Mar 2013
It looks like y will return only the last non-NaN row, instead of collecting all of them.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!