Using Simulink | ![]() ![]() |
The Simulink Data Explorer allows you to display and set the values of variables and data objects in the MATLAB workspace. To open the Data Explorer, choose Data explorer from the Simulink Tools menu or enter slexplr
at the MATLAB prompt. The Data Explorer dialog box appears.
The Data Explorer contains two panes. The left pane lists variables defined in the MATLAB workspace. Use the Filter option control to specify the types of variables to be displayed (for example, all variables or Simulink data objects only). The right pane displays the value of the variable selected in the left pane. To create, rename, or delete an object, click the right mouse button in the left pane. To display the fields of a property structure, click the + button next to the property's name.
To change a value, click the value. If the value is a string, edit the string. If the property must be set to one of a predefined set of values, the Data Explorer displays a drop-down list displaying valid values. Select the value you want. If the value is an array, the Data Explorer displays an array editor that allows you to set the dimensions of the array and the values of each element.
![]() | Creating Data Object Classes | Associating User Data with Blocks | ![]() |