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.
841 Solvers
Find the sum of the elements in the "second" diagonal
999 Solvers
Getting the indices from a vector
3448 Solvers
253 Solvers
122 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!