This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Steven He
on 1 Aug 2016
Just the sum of 1 to n
Oscar De Leon
on 18 Feb 2020
t = sum(1:n)
Suggested Problems
-
Sum all integers from 1 to 2^n
15998 Solvers
-
Flip the main diagonal of a matrix
839 Solvers
-
Permute diagonal and antidiagonal
463 Solvers
-
678 Solvers
-
1286 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!