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.
Convert a vector into a number
506 Solvers
327 Solvers
Add a row of zeros on top of a matrix
196 Solvers
365 Solvers
91 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!