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 Ansichten (letzte 30 Tage)
Does anyone know how to solve this question?

Akzeptierte Antwort

Alejandro Peñuelas
Alejandro Peñuelas am 25 Mai 2020
This is the basics of Matlab. Even though,
% Create a vector from 100 to 2 decreasing by 2.
evens = 100:-2:2;

Weitere Antworten (0)

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by