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.
Find the sum of all the numbers of the input vector
32723 Solvers
17907 Solvers
How to find the position of an element in a vector without using the find function
2482 Solvers
274 Solvers
construct matrix with identical rows
171 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!