how to decrements variable in for loop

for i=17:i
how to decrement i value.
i.e i value in next loop i=16 and i=15 in next loop

1 comentario

Jan
Jan el 30 de En. de 2012
Having the same variable on the right and left hand in FOR is confusing.

Iniciar sesión para comentar.

Respuestas (1)

Titus Edelhofer
Titus Edelhofer el 30 de En. de 2012
Hi,
doc for
and take a look at the parameter "stepval".
Titus

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 30 de En. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by