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.
Set the array elements whose value is 13 to 0
958 Solvers
Switch matrix to a column vector
265 Solvers
07 - Common functions and indexing 2
330 Solvers
3156 Solvers
95 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!