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 个评论
Jan
2012-1-30
Having the same variable on the right and left hand in FOR is confusing.
回答(1 个)
Titus Edelhofer
2012-1-30
Hi,
doc for
and take a look at the parameter "stepval".
Titus
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!