Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by