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.
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
3384 Solvers
-
488 Solvers
-
Matrix with different incremental runs
528 Solvers
-
Unique values without using UNIQUE function
371 Solvers
-
545 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!