MATLAB® includes functionality to indirectly evaluate expressions, protect your source code using obfuscation, set timers for program execution, and capture data on errors.
|Create object to schedule execution of MATLAB commands|
|Remove timer object from memory|
|Query property values for timer object|
|Determine timer object validity|
|Set property values for timer object|
|Start timer object|
|Schedule timer to fire at specified time|
|Stop timer object|
|Find timer object|
|Find timer object, regardless of visibility|
|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