How to add even numbers in matlab
Show older comments
how can i sum all even numbers in matlab.
starting from 2 so : 2
4 would be 2+4=6
7 would be 2+4+6=12
how can i filter out odd numbers? anyone got an idea ?
1 Comment
The introductory tutorials are the best place to learn basic MATLAB concepts, like how to create vectors and call functions:
These would be a good place to continue reading:
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!