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 个评论

Having the same variable on the right and left hand in FOR is confusing.

请先登录,再进行评论。

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

提问:

2012-1-30

Community Treasure Hunt

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

Start Hunting!

Translated by