Main Content

States Explorer

Visualize states in model

Description

Use theState Explorerto view individual state dynamics of your model

Open the States Explorer

  • Profile the model using theSolver Profiler. Ensure that theContinuous Statesparameter is enabled.

  • SelectStatesin theExploresection of theSolver Profilertoolstrip.

Examples

expand all

This example shows how to use States Explorer to explore Newton Exceptions.

To begin, open theex_spi_show_zcmodel, clickDebug, open the drop down menu ofPerformance Advisor, select Solver Profiler.

Enable theContinuous Statesparameter in theConfiguresection of the toolstrip and run Solver Profiler.

When profiling has completed, launch State Explorer. SelectNewton/DAE Exceptionin theFiltersection of the State Explorer toolstrip.

There is an increase in the density of Newton exceptions through the simulation. Zoom in on the State plot between the 5 and 6 second mark.

仔细观察发现,每个反弹作为原因的es two Newton iterations to switch from positive to negative corresponding to two zero crossing events. For more details, seeInteractively Explore Zero Crossings. Around 5.48 seconds, the bouncing ball being simulated in the model comes to ‘rest’, hence the isolated single Newton iteration exception.

Version History

Introduced in R2016a