Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by