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.19% Correct | 56.81% Incorrect
Last Solution submitted on Mar 15, 2025

Problem Comments

Solution Comments

Show comments

Group

Swap Between Values Image
Swap Between Values
  • 13 Problems
  • 40 Finishers

Problem Recent Solvers161

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page