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 ]
1 player likes this solution
1 player likes this solution
4 players like this solution
2 players like this solution
1 player likes this solution
20 players like this solution
Tags
Win cash prizes and have your live script featured on our website
Learn more
33 players like this problem
33 players like this problem