Jump to the next point at looping

1 次查看(过去 30 天)
Hi! I would like to jump one step inside a loop, for example:
n = "number"
for i = 1:0.01:n
x = "equation"
end
If one step of the loop takes to long to conclude, how can i "jump" this value of "i" to the next term?
Thank you a lot for your time! See you!
  1 个评论
Geoff Hayes
Geoff Hayes 2016-12-19
编辑:Geoff Hayes 2016-12-19
Thales - how will you measure how long one step of the loop takes to long to conclude? Typically, you would use continue to skip to the next iteration but you will need some mechanism in order to make that decision to call it.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by