>> sum(1:5)
ans =
15
>> sum(1:6)
ans =
21
>> sum(1:3)
ans =
6
Find relatively common elements in matrix rows
865 Solvers
2980 Solvers
1800 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!