Using the C++ Math Library | ![]() ![]() |
Errors
In general MATLAB notifies you of errors by emitting a beep and returning you to the MATLAB prompt. If you need to do more sophisticated error handling in your M-files, you can use a try and catch block to change the flow of control when an error occurs, perform any cleanup, and exit or continue your program. You can also design a method of your own for handling errors and implement it.
![]() | Input and Output | Flow of Control | ![]() |