필터 지우기
필터 지우기

Is it possible to run a "for" loop by manually assigning specific values to the variable ?

조회 수: 3 (최근 30일)
I want to run a "for" loop by manually assigning specific values to the variable, as shown below. Is that possible?
for i = 1,3,6,7,11,18.
.............
end

채택된 답변

Walter Roberson
Walter Roberson 2016년 6월 23일
for i = [1,3,6,7,11,18]
.............
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by