Create a vector of all the even positive integers smaller than or equal to 100 in decreasing order and save it into variable evens.

17 ビュー (過去 30 日間)
Does anyone know how to solve this question?

採用された回答

Alejandro Peñuelas
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 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by