Documentation Center

  • Trial Software
  • Product Updates

View Enumerated Values in a Chart

View Values of Enumerated Data During Simulation

To view the values of enumerated data during simulation:

  1. Open the Stateflow® Debugger.

  2. In the Stateflow Debugger, select breakpoints.

  3. Click Start to simulate the model.

  4. During simulation, select Browse Data.

    In the Stateflow Debugger, the values of enumerated data appear by name. (For more information, see Watch Data in the Stateflow Debugger.)

View Values of Enumerated Data After Simulation

To view the values of enumerated data after simulation:

  1. Open the Model Explorer.

  2. In the Model Hierarchy pane, select a chart with enumerated data.

  3. In the Contents pane, right-click an enumerated data and select Properties.

    The Data properties dialog box appears.

  4. In the Description pane, select Save final value to base workspace.

  5. Click OK to close the Data properties dialog box.

  6. Repeat steps 2 through 5 if you want to save the final value of another enumerated data.

  7. Simulate the model.

  8. After simulation ends, view enumerated data in the base workspace.

    In the MATLAB® Command Window, the final values of enumerated data appear by underlying numeric value.

Was this topic helpful?