To share the code generation report, you can package the code generation report files and supporting files into a zip file for transfer. The default location for the code generation report files is in two folders:
/slprj
html
subfolder of the build folder, model
_
,
for example target
_rtwrtwdemo_counter_grt_rtw/html
To create a zip file from the MATLAB command window:
In the Current Folder browser, select the two folders:
/slprj
Build folder: model
_
target
_rtw
Right-click to open the context menu.
In the context menu, select Create Zip File. A file appears in the Current Folder browser.
Name the zip file.
Alternatively, you can use the MATLAB zip
command
to zip the code generation report files:
zip('myzip',{'slprj','rtwdemo_counter_grt_rtw'})
Note
If you need to relocate the static and generated code files for a model to another development environment, such as a system or an integrated development environment (IDE) that does not include MATLAB® and Simulink® products, use the code generator pack-and-go utility. For more information, see Relocate Code to Another Development Environment.
To view the code generation report after transfer, unzip the
file and save the two folders at the same folder level in the hierarchy.
Navigate to the model
_
folder
and open the top-level HTML report file named target
_rtw/html/model
_codgen_rpt.html
or
in
a Web browser.subsystem
_codegen_rpt.html