This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Clayton
on 12 Jul 2012
Not really my work; the previous leader did this, I simply reduced the size by 2 using the 'ans trick'.
Felix
on 7 Dec 2012
This is not really the correct solution, as for large n it will eventually produce inaccurate results.
Mattias
on 2 Jan 2015
True. It can be improved a bit though by using more decimals for phi.
Suggested Problems
-
Find the sum of all the numbers of the input vector
50687 Solvers
-
1209 Solvers
-
435 Solvers
-
Create matrix of replicated elements
383 Solvers
-
5303 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!