Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Jun. 2016
for i = [1,3,6,7,11,18]
.............
end

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by