How to exit a program or rather not process further code if a condition is not met ?
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Tonu
am 21 Nov. 2012
3 Stimmen
1 Kommentar
Aishwarya Lakshmi Srinivasan
am 8 Mär. 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
am 11 Jul. 2018
1 Stimme
Thank you very much, greetings.
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!