Learned from Solution 883700, by Tim. run this just for checking: I reckon that function "sum" in that solution is redundant, and my guessing seems to be right.
Find all elements less than 0 or greater than 10 and replace them with NaN
13146 Solvers
1234 Solvers
287 Solvers
494 Solvers
116 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!