Generazione di report
Con un report sulla generazione di codice HTML è possibile visualizzare i file sorgente del codice generato e analizzare le informazioni relative al codice stesso, quali gli obiettivi della generazione di codice, i sottosistemi, l'interfaccia del codice e le metriche statiche del codice. Il report sulla generazione di codice fornisce la tracciabilità tra il codice e gli elementi del modello. Includere una visualizzazione Web del modello per condividere il modello e il codice generato al di fuori dell'ambiente MATLAB.
Funzioni
coder.report.open | Open existing HTML code generation report |
coder.report.generate | Generate HTML code generation report |
coder.report.generateCodeMetrics | Generate static code metrics report |
coder.report.close | Close HTML code generation report |
Argomenti
- Reports for Code Generation
Access the generated code files and information about the generated code with the code generation report.
- Generate Code Generation Report
When the model is built, generate an HTML code generation report for analyzing the generated code.
- Configure and Generate Code Generation Report Programmatically
You can programmatically generate, open, and close an HTML code generation report at the MATLAB® command line using the
coder.report.generate,coder.report.open, andcoder.report.closefunctions respectively. - Generate Static Code Metrics Report for Simulink Model
When generating code, generate a report that includes static code metrics, such as, the number of lines of code, size of global variables, and the number of reads and writes.
- Generate Web View of Model in Code Generation Report
Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
- Document Generated Code with Simulink Report Generator
Explains how to use the Simulink® Report Generator™ software to generate a detailed report for a code generation project.