How can i stop the execution of a mat-lab program when a certain condition is met Code: if x>0 % stop execution end
if x>0 % stop execution end
Follow Math Help Forum on Facebook and Google+
Originally Posted by AUCC How can i stop the execution of a mat-lab program when a certain condition is met Code: if x>0 % stop execution end break will get you out of the current loop, or if you are in a function return will exit the function (should also work in a script file). CB
View Tag Cloud