This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Dale Crawford
on 7 Dec 2015
I think this works for very low numbers but as you get higher, a work around that might be faster is
n*(n+1)/2
Suggested Problems
-
Make a random, non-repeating vector.
9791 Solvers
-
474 Solvers
-
Check that number is whole number
4557 Solvers
-
1576 Solvers
-
Electrical Diode Current Calculation
772 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!