MATLAB: What happens if a MATLAB executable (GUI for example) runs into an erro while running

executablesMATLAB Compilermatlab executablerunning into an error

Hello,
If I were to compile an executable (GUI for example) which asks the user to load a file, then, when processing the data, MATLAB receives an error, what happens to the executable?
So, for example, let's say you have a GUI (compiled into an exe) which opens an excel sheet, and adds the 3rd and 4th numbers, what happens if the 4th number doesn't exist (or it is a string?)
Does the whole executable file just shut down? Or does it keep trying to run?
Thank you

Best Answer

Any uncaught error will result in shutdown. If that is not what you want then be sure to put in protective tests, test results of operations to be sure they succeeded, and use try/catch when appropriate.