Integrations (PTC products, 3rd party products and code) > 3rd party product integrations (CM, DOORS, Rose, Simulink and XML) > Integration for MATLAB Simulink > Working with classes > Modeling classes for exporting to a Simulink model (Integration for MATLAB Simulink)
  
Modeling classes for exporting to a Simulink model (Integration for MATLAB Simulink)
The way you model your Classes for exporting to Simulink depends on which Simulink Mapping you select on the Target Selection page of Integration for MATLAB Simulink. If you use the Simulink ERT Code Mapping, the way you model the Class is also affected by whether the Simulink Real-time Workshop is set up to use the Default Code Interface or Custom Code Interface. For more information about Class mappings, see Class to Simulink mapping (Integration for MATLAB Simulink).
Integration for MATLAB Simulink exports a Class as a Simulink model and its block diagram.
Simulink Basic Code Mapping
If you are using the Simulink Basic Code Mapping to export a Class, set up the Class as follows:
* 
The Parameter's Mechanism property determines whether the Parameter is exported as an inport or outport.
Simulink ERT Code Mapping (default code interface):
If you are using the Simulink ERT Code Mapping to export a Class and the Simulink Real-time Workshop is set up to use the Default Code Interface, set up the Class as follows:
Simulink ERT Code Mapping (custom code interface):
If you are using the Simulink ERT Code Mapping to export a Class and the Simulink Real-time Workshop is set up to use the Custom Code Interface, set up the Class as follows:
* 
The Parameter's Mechanism property determines whether the Parameter is exported as an inport or outport.
The Class can have only one Operation.
Simulink GRT Code Mapping:
If you are using the Simulink GRT Code Mapping to export a Class, set up the Class as follows: