how can jump and go another line in a m-file?
Afficher commentaires plus anciens
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 commentaire
Gerrit Verboom
le 28 Mar 2021
Please, don't call me lazy when I want to use a kind of jump to or goto.
Regards,
Gerrit Verboom
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 31 Août 2011
3 votes
2 commentaires
mohammad
le 31 Août 2011
Paulo Silva
le 31 Août 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.
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!