MATLAB では C や FORTRAN 同様に Goto 文を使うことはできますか?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 23 Feb 2016
Modificato: MathWorks Support Team
il 9 Apr 2021
C や FORTRAN では Goto 文はあるのですが、MATLAB では Goto 文を利用したいと考えています。方法を教えてください。
Risposta accettata
MathWorks Support Team
il 9 Apr 2021
Modificato: MathWorks Support Team
il 9 Apr 2021
MATLAB の機能として Goto 文はありません。
Goto 文によるプログラムのフローの追跡が難しく、デバッグが難しいとされており、推奨致しかねますが、MATLAB CENTRAL においてご使用いただけるスクリプトが公開されています。
MATLAB Goto Statement:
なお、MATLAB Centralにおいてフリーで公開されているファイルの内容に関しましては、恐れ入りますが、直接プログラム作成者の方にお問い合わせ願います。
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su ループと条件付きステートメント in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!