Why do you pass n in your function (and not x) ?
Agree with above. According to the description you are given the randomized array.
This solution should be wrong, at least according to the description.
332 Solvers
302 Solvers
Replace multiples of 5 with NaN
360 Solvers
Matlab Basics II - Count rows in a matrix
258 Solvers
1262 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!