goto command in matlab
Mostra commenti meno recenti
i have code consist from 80 step, at step 60 i have condition, if not true, it should be jump to step 30, my question, is there (goto) or somthing same command in matlab
Risposta accettata
Più risposte (1)
Walter Roberson
il 22 Ott 2015
0 voti
Goto is not available in basic MATLAB but is available in a File Exchange Contribution for the amusement of those who know not to use GOTO, and for the frustration of those who insist they need GOTO.
1 Commento
Guillaume
il 22 Ott 2015
'amusement' is a key word here. That FEX contribution should not be used for anything else. I don't think the warning is strong enough on the FEX page and we may end up having some people trying to use it without understanding the implication.
That goto is basically an interpreter built on top of matlab own interpreter. As soon as you hit a goto, you're simply eval'ing the rest of the program line by line!
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!