Defining Mappings

You map actions to pass information to and to retrieve information from MATLAB®. A single mapping action can involve mapping more than just one parameter to/from MATLAB. To define a mapping, you need to specify the Optimization Process Composer parameter and the MATLAB variable name involved in the mapping.

See Also
Adding Actions
  1. From the Applications section of the action bar, click MATLAB and drop it on the process diagram.
  2. Double-click MATLAB .
    The MATLAB Editor appears.
  3. Select the desired mapping-type action from the Initialize, Execution, or Finalize subtabs.

    An area for defining the mappings appears on the right side of the editor.

    You can edit the name used to identify the action in the Mappings text box.

  4. Click the down-arrow to select an existing Optimization Process Composer parameter from the parameter list (below the Mappings text box).

    You can enter the name of a new parameter in the text box to create a new parameter.

  5. Click a mapping direction:
    • Mapping To. Represents a mapping from the Optimization Process Composer parameter to the MATLAB variable.
    • Mapping From. Represents a mapping to the Optimization Process Composer parameter from the MATLAB variable.
  6. Click Add Parameter to add a parameter.

    A row appears in the mapping table containing the Optimization Process Composer parameter, the mapping direction (indicated by an arrow), and the name of the MATLAB variable. You can click the X button to delete a mapping.

  7. Click Ok to save your changes and to close the MATLAB Editor.