Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

rtwreport - Generate report documenting the generated code for a model

Syntax

rtwreport(model)
rtwreport(model, directory)

Description

rtwreport(model) generates a report that shows the generated code for a model. model is a string enclosed in quotes specifying the model name. If necessary, the function loads the model and generates code before generating the report. The report includes:

By default, the Real-Time Workshop software names the generated report codegen.html and places the file in your current directory.

rtwreport(model, directory) includes a user-specified directory. directory is a string enclosed in quotes specifying the name of a directory. The Real-Time Workshop software places the generated report in the parent directory of the directory you specify. The Real-Time Workshop project directory (slprj) must be in the parent directory. If the user-specified directory cannot be found, an error results and the Real-Time Workshop software does not generate code.

Examples

Generate a report for model rtwdemo_codegenrpt:

rtwreport('rtwdemo_codegenrpt');

Alternatives

In the model window, select Tools > Report Generator. See Simulink Report Generator User's Guide for more information.

Tutorials

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS