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

采纳的回答

Jos (10584)
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
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 CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by