is 'continue' in 'c' language similar in MATLAB??
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
i am change my code of c language in to matlab .but its gives infinite loop in Matlab?
what is the problem?
3 个评论
回答(1 个)
  per isakson
      
      
 2013-4-6
        Yes
    The C continue Statement
    The continue statement passes control to the next iteration of the nearest 
    enclosing do, for, or while statement in which it appears, bypassing any 
    remaining statements in the do, for, or while statement body.
    Matlab 
    continue, Pass control to next iteration of for or while loop
However, to avoid infinite loops
    break
might be what you need
0 个评论
另请参阅
类别
				在 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!


