Cody

Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN.

Example:

 Input  x =  [  5  17 -20  99  3.4  2  8  -6 ]
 Output y is [  5 NaN NaN NaN  3.4  2  8 NaN ]

Solution Stats

40.17% Correct | 59.83% Incorrect
Last Solution submitted on Dec 09, 2019

Problem Comments

Solution Comments

Problem Recent Solvers11620

Suggested Problems

More from this Author95