Code analysis and execution functions provide options for checking, protecting, and running your code. For example, when you upgrade to a new version of MATLAB®, you can generate a report of potential compatibility issues in your code, such as discouraged or removed functions and the occurrence of invalid syntaxes.
This example shows how to write a live script that tests a function that you create.
MATLAB Code Compatibility Report
Generate a report that helps update your code when you upgrade to a newer MATLAB release.
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.
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
.