how can jump and go another line in a m-file?
Mostra commenti meno recenti
how can jump and go another line in a m-file. for example:
if a=b;
a=0;
else
(jump ***line)
end
----other commands
----other commands
.
.
.
***line
1 Commento
Gerrit Verboom
il 28 Mar 2021
Please, don't call me lazy when I want to use a kind of jump to or goto.
Regards,
Gerrit Verboom
Risposta accettata
Più risposte (1)
Walter Roberson
il 31 Ago 2011
3 voti
2 Commenti
mohammad
il 31 Ago 2011
Paulo Silva
il 31 Ago 2011
mohammad, jumping to lines of code is very lazy and does more harm than good, if you want to be a good programmer don't do it that way, learn to use functions and conditions to control the flux of your code.
Categorie
Scopri di più su Get Started with MATLAB 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!