remove every row&col for every nan - MATLAB Cody - MATLAB Central

Problem 44430. remove every row&col for every nan

Difficulty:Rate

for a given matrix, remove the row and column of every nan. Example

x=[1     2   NaN
   4     5     6
   7     8     9]
y= [4     5
    7     8]

Solution Stats

43.95% Correct | 56.05% Incorrect
Last Solution submitted on Jul 01, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers182

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!