MATLAB® includes functionality to indirectly evaluate expressions, set timers for program execution, and capture data on errors.
Schedule Execution with Timer
|Schedule execution of MATLAB commands|
|Delete files or objects|
|Query graphics object properties|
|Determine valid handles|
|Set graphics object properties|
|Schedule timer to fire at specified time|
|Find timer objects|
|Find all timer objects|
|Block command prompt until timer stops running|
|Execute statements and catch resulting errors|
|Capture error information|
|Record additional causes of exception|
|Provide suggested fix for exception|
|Get error message for exception|
|Return last uncaught exception|
|Rethrow previously caught exception|
|Throw exception as if occurs within calling function|
|Correct error by appending missing input arguments|
|Correct error by converting to function notation|
|Correct error by replacing identifier in function call|
- Schedule Command Execution Using Timer
To schedule the execution of MATLAB commands, create a timer object.
- Exception Handling in a MATLAB Application
It is a good programming practice to include error checking in your programs to ensure reliable operation under all conditions. You can decide how your programs respond to different types of errors.
- Create Hyperlinks that Run Functions
Functions that support the
matlab:keyword can display hyperlinks, which execute commands when you click the hyperlink text.
- Alternatives to the eval Function
evalfunction is very powerful and flexible, it is not always the best solution to a programming problem. In many instances, there are recommended alternative approaches to using
- Run Parallel Language in MATLAB
You can run parallel code in serial if you do not have Parallel Computing Toolbox™.