Exporting a class to a Simulink model (Integration for MATLAB Simulink)
1. If you have not done so already, add the Simulink profile to the Modeler model. How?
2. In Modeler, right-click the Class, and select Tools > Simulink Synchronizer > Synchronize.
3. Set the options on each page of Integration for MATLAB Simulink as required.
4. On the Target Selection page, ensure that you select the required Simulink Mapping from the Mapping drop-down list - the following options are available:
Simulink Basic Code Mapping
Simulink ERT Code Mapping
Simulink GRT Code Mapping
For information about the options that appear on a page of Integration for MATLAB Simulink, click the Help button.
* 
If you are updating a Simulink model from a previously exported Class, on the Mapping List page, select the Integration for MATLAB Simulink Mapping you used to previously export that Class.
If you are exporting the Class the first time, on the Target Selection page, select an empty Simulink model or create a new Simulink model.
On the Target Selection page, select the Modeler -> Simulink option.
If on the Item Mapping Definitions page an icon indicates that an object has changed in the Simulink model (for example or ), confirm that it is acceptable for the export to overwrite those changes.
If in future you want to be able to quickly update the exported Simulink model with any changes you make to the Modeler Class, on the Save and Synchronize page click the Save and Synchronize button.
Integration for MATLAB Simulink creates the Simulink model.
Was this helpful?