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

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

採用された回答

Carlos Alejandro Peñuelas Angulo
Carlos Alejandro Peñuelas Angulo 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;

その他の回答 (1 件)

Paola Rodríguez Guzmán
Paola Rodríguez Guzmán 2021 年 9 月 14 日
evens=100:-2:2;

Community Treasure Hunt

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

Start Hunting!

Translated by