This solution is outdated. To rescore this solution, sign in.
-
1 Comment
yurenchu
on 25 Dec 2016
This solution will fail for nmax = 2; so I had to swap the order of two lines. See Solution 1088355.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!