Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by