-
1 Comment
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
Return a list sorted by number of occurrences
1873 Solvers
Create a Multiplication table matrix...
342 Solvers
8630 Solvers
364 Solvers
Solve a System of Linear Equations
7074 Solvers
More from this Author95
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!