This solution is outdated. To rescore this solution,sign in.
-
2 Comments
rohit moreon 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
Timon 11 Mar 2013
It looks like y will return only the last non-NaN row, instead of collecting all of them.
Suggested Problems
Remove the small words from a list of words.
1006 Solvers
434 Solvers
375 Solvers
Find the sides of an isosceles triangle when given its area and height from its base to apex
1128 Solvers
Convert from Fahrenheit to Celsius
15371 Solvers
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!