Identificazione dei problemi relativi al codice
Identificare i problemi, verificare la compatibilità con la release e la preparazione per la generazione di codice
MATLAB® identifica automaticamente potenziali problemi di codifica mentre si lavora nell'Editor e in Live Editor. È inoltre possibile generare report che aiutano ad aggiornare il codice quando si passa a una release di MATLAB più recente.
Strumenti
| Code Analyzer | Identify and address code issues (Da R2022b) |
| Code Compatibility Analyzer | Identify and address compatibility issues against current version of MATLAB (Da R2022a) |
Funzioni
Argomenti
Controllo della sintassi
- Check Syntax as You Type
Use syntax highlighting and delimiter matching to avoid syntax errors. - Check Code for Errors and Warnings Using the Code Analyzer
Use the MATLAB Code Analyzer to check your code for coding problems automatically. - MATLAB Code Analyzer Report
Generate a report that identifies potential errors, problems, and opportunities for improvement in your code. - Code Analyzer Settings
Modify Code Analyzer settings to enable or disable Code Analyzer features and specify message indicator settings. - Customize Code Analyzer Checks Using Configuration File
Configure Code Analyzer checks and add custom checks using configuration file. (Da R2023a)
- Index of Code Analyzer Checks
This topic contains a listing of built-in MATLAB Code Analyzer checks which you can modify to meet your own custom coding standards.
Compatibilità della release
- MATLAB Code Compatibility Analyzer
Generate a report to identify potential compatibility issues in your code when you upgrade to a newer MATLAB release.
Generazione di codice
- Code Generation Readiness Tool
The code generation readiness tool screens MATLAB code for features and functions that code generation does not support.