In Simulink® Project, in the Batch Job view, select the check boxes of project files you want to include in the batch job.
If the batch function can identify the files to operate on,
include all files. For example, the batch job function
To select multiple files, Shift or Ctrl+click, and then right-click a file and select Include or Exclude.
Specify the batch function to run in the Batch function box. Enter the name, or click Select to browse or choose from a list of Batch Job shortcuts and recently used shortcuts.
If your project does not yet contain any batch functions, see Create a Batch Function.
Click Run Batch Job.
Simulink Project displays the results in the Batch Job Results column.
Expand the Results pane to view details of results for the currently selected file.
You can publish a report of your batch job results. For example, try this batch job:
Open an example project by entering
In the Batch Job view, click Select to choose from a list of batch job shortcuts and recently used shortcuts. Choose Select > Utility > Generate Bill of Materials Report.
Click Run Batch Job. Results appear.
Click Publish Report.
In the file browser, specify a name and location for the report, and choose a file type from HTML or Microsoft® Word. If you have MATLAB® Report Generator™, on Windows®, you can also choose PDF.
View the results in the report.
The example batch job function Generate Bill of
Materials Report creates a list of project files, their
source control status, revision numbers, and MD5 checksums. You can
view the code for this batch job in the file
To see the report file and add it to your project, switch to the All Files View.
Tip To try example batch jobs in a project, see the example Running Batch Jobs with a Simulink Project.