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

matrices and operators.

Does anyone know how to solve this question?

Best Answer

This is the basics of Matlab. Even though,
% Create a vector from 100 to 2 decreasing by 2.
evens = 100:-2:2;
Related Question