MATLAB では C や FORTRAN 同様に Goto 文を使うことはできますか?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 23 Fév 2016
Modifié(e) : MathWorks Support Team
le 9 Avr 2021
C や FORTRAN では Goto 文はあるのですが、MATLAB では Goto 文を利用したいと考えています。方法を教えてください。
Réponse acceptée
MathWorks Support Team
le 9 Avr 2021
Modifié(e) : MathWorks Support Team
le 9 Avr 2021
MATLAB の機能として Goto 文はありません。
Goto 文によるプログラムのフローの追跡が難しく、デバッグが難しいとされており、推奨致しかねますが、MATLAB CENTRAL においてご使用いただけるスクリプトが公開されています。
MATLAB Goto Statement:
なお、MATLAB Centralにおいてフリーで公開されているファイルの内容に関しましては、恐れ入りますが、直接プログラム作成者の方にお問い合わせ願います。
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur ループと条件付きステートメント dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!