Create a vector of all the even positive integers smaller than or equal to 100 in decreasing order and save it into variable evens.
16 次查看(过去 30 天)
显示 更早的评论
Does anyone know how to solve this question?
采纳的回答
Alejandro Peñuelas
2020-5-25
This is the basics of Matlab. Even though,
% Create a vector from 100 to 2 decreasing by 2.
evens = 100:-2:2;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!