I was wondering what the common practice in Matlab is when you want to make a program terminate at a certain point to do simple checks like seeing the shape of arrays, etc.
In Python, I usually insert exit() at the place I want my program to terminate.
I looked at the documentation for Matlab and here it says there is an exit statement, but this results in closing the Matlab GUI, and thus I am not able to check the output to the Matlab terminal.
I understand that I can simply terminate the program manually when running it, but that gives me less control over when exactly to terminate.
