Problem 300. Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the entire line containing NaN;
Solution Stats
Problem Comments
-
3 Comments
goc3
on 24 Feb 2017
Additional test cases have been added.
Mia Buckley
on 22 Jul 2021
I have the same problem and need a solution.
Lawrence
on 18 Jul 2025
Fantastic.
Solution Comments
Show commentsProblem Recent Solvers1287
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2770 Solvers
-
1036 Solvers
-
658 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
388 Solvers
-
Create a two dimensional zero matrix
507 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!