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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!