inverse loop
258 次查看(过去 30 天)
显示 更早的评论
I want to use loop from i=180:1 and again next inserted loop j=180:1 Does matlab allow that? how I access (180,180) first rather then (0,0)...
回答(4 个)
Jan
2011-11-22
Whenever you have a problem with a specific command, be sure to read the help and doc text for this command:
help for
Step S with increments of -0.1
for S = 1.0: -0.1: 0.0, do_some_task(S), end
0 个评论
karan
2011-11-22
编辑:Walter Roberson
2022-9-14
do loop for i=180:-1:1
will have a decreasing step by 1
另请参阅
类别
在 Help Center 和 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!