MATLAB では C や FORTRAN 同様に Goto 文を使うことはできますか?

15 views (last 30 days)
C や FORTRAN では Goto 文はあるのですが、MATLAB では Goto 文を利用したいと考えています。方法を教えてください。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Apr 2021
Edited: MathWorks Support Team on 9 Apr 2021
MATLAB の機能として Goto 文はありません。
Goto 文によるプログラムのフローの追跡が難しく、デバッグが難しいとされており、推奨致しかねますが、MATLAB CENTRAL においてご使用いただけるスクリプトが公開されています。
MATLAB Goto Statement:
なお、MATLAB Centralにおいてフリーで公開されているファイルの内容に関しましては、恐れ入りますが、直接プログラム作成者の方にお問い合わせ願います。

More Answers (0)

Categories

Find more on ループと条件付きステートメント in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!