Is there instruction (go to) in MATLAB and if there is no such instruction Is there a instruction similar to it?
1 次查看(过去 30 天)
显示 更早的评论
go to :aa
aa:end
1 个评论
采纳的回答
Jos (10584)
2016-2-19
编辑:Jan
2016-2-19
No, there is not. Using GOTO is usually ill-advised because it quickly leads to unreadable code. In all cases, the workflow that uses goto-statement can be re-designed (... or you face the potential costs ...)
更多回答(1 个)
Jan
2016-2-19
Fortunately Matlab does neither have a GOTO nor the even smarter COMEFROM. A clean program benefits from avoiding such indirections.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!