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
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 CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by