Remove NaN ? - MATLAB Cody - MATLAB Central

Problem 300. Remove NaN ?

Difficulty:Rate

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

41.76% Correct | 58.24% Incorrect
Last Solution submitted on Dec 03, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers1327

Suggested Problems

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!