stopping the code in the wode in matlab

To stop the code execution during the running, you can use the following command in MATLAB:

main.m
error('Execution stopped by user.');
37 chars
2 lines

This will throw an error and stop the execution immediately. You can modify the error message as per your requirement.

related categories

gistlibby LogSnag