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.
Back to basics 25 - Valid variable names
293 Solvers
Given a matrix, return the last eigen value
175 Solvers
489 Solvers
257 Solvers
construct matrix with identical rows
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!