Cody

Problem 43708. Replace all odd numbers with NaN

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.33% Correct | 46.67% Incorrect
Last solution submitted on Jun 25, 2019

Problem Comments

Solution Comments