MATLAB® includes functionality to indirectly evaluate expressions, protect your source code using obfuscation, set timers for program execution, and capture data on errors.
When you share your MATLAB code, the contents are easily accessed, revealing design and implementation details. You can obfuscate or compile your source files.
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
Although the 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 eval
.