How to exit a program or rather not process further code if a condition is not met ?
Afficher commentaires plus anciens
Say for example a check for a variable 'a' ?
If a is not equal to (a~= 1) abort the program and do not execute further codes , else continue ?
Thanks,
Tonu
Réponse acceptée
Plus de réponses (2)
Tonu
le 21 Nov 2012
3 votes
1 commentaire
Aishwarya Lakshmi Srinivasan
le 8 Mar 2021
Hi, can you please elaborate this ? In my case I am trying to abort a function that is currently running by setting the flag to false when abort button is pressed in an app designer.
Anmar Mohammed
le 11 Juil 2018
1 vote
Thank you very much, greetings.
Catégories
En savoir plus sur Startup and Shutdown 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!