MATLAB® includes functionality to indirectly evaluate expressions, protect your source code using obfuscation, set timers for program execution, and capture data on errors.
|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|
When you share your MATLAB code, the contents are easily accessed, revealing design and implementation details. You can obfuscate or compile your source files.
To schedule the execution of MATLAB commands, create a timer object.
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.
Functions that support the
matlab: keyword can display
hyperlinks, which execute commands when you click the hyperlink text.
eval function 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
You can run parallel code in serial if you do not have Parallel Computing Toolbox™.