Inspect Model Hierarchies
To better understand a model hierarchy, you can use Simulink® tools, functions, parameters, or settings to:
Preview model contents
Visualize the model hierarchy
List referenced models and Model blocks
Display model version numbers
Content Preview
Content preview displays a representation of the contents of a referenced model on the Model block. This preview helps you to understand at a glance the kind of processing performed by the referenced model without opening the referenced model. See Preview Content of Model Components.

Model Dependency Graph
The Dependency Analyzer displays the structure of the model hierarchy and lets you open the models in the model hierarchy. The Model Instances view displays Model blocks differently to indicate normal, accelerator, SIL, and PIL simulation modes.

The depview
function opens the model dependency graph.
For more information, see Analyze Model Dependencies.
List of Model References
The find_mdlrefs function lists the models
that are directly or indirectly referenced by a given model. This function also provides
the paths to the related Model blocks.
For example, find the referenced models and Model blocks in the
MultiCounter model. This example opens the
ModelReference project, which opens the
MultiCounter model at startup.
openExample('simulink_features/ComponentBasedModelingUsingModelReferenceExample') [myModels,myModelBlks] = find_mdlrefs("MultiCounter")
myModels =
2×1 cell array
{'LimitedCounter'}
{'MultiCounter' }
myModelBlks =
3×1 cell array
{'MultiCounter/CounterA'}
{'MultiCounter/CounterB'}
{'MultiCounter/CounterC'}
For more information, see find_mdlrefs.
Model Version Numbers
To display the version numbers of referenced models, in the parent model, on the Debug tab, click Information Overlays. Then, under Blocks, select Ref. Model Version. The version of each Model block instance appears on each Model block.

For information on model versions, see Manage Model Versions and Specify Model Properties.