Cody

Problem 43708. Replace all odd numbers with NaN

Created by Iik Jae Park in Community

Replace all odd numbers in the vector or matrix with NaN. For example, if

 x = [1 3 4 5 8 11];

then return

 y = [NaN NaN 4 NaN 8 Nan];

Solution Stats

53.45% Correct | 46.55% Incorrect
Last solution submitted on Mar 04, 2019

Problem Comments

Solution Comments

Recent Solvers29

Suggested Problems

More from this Author7

Tags