Create a vector of all the even positive integers smaller than or equal to 100 in decreasing order and save it into variable evens.
10 views (last 30 days)
Show older comments
Ishan Pai
on 24 May 2020
Commented: Ishan Thakur
on 1 Aug 2020
Does anyone know how to solve this question?
Accepted Answer
Alejandro Peñuelas
on 25 May 2020
This is the basics of Matlab. Even though,
% Create a vector from 100 to 2 decreasing by 2.
evens = 100:-2:2;
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!