This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

depview

Display graph of model referencing dependencies with or without library dependencies

depview opens the Model Dependency Viewer. While view_mdlrefs also opens the Model Dependency Viewer, depview provides programmatic options that allow you to open a specific configuration of the Model Dependency Viewer.

Syntax

depview(sys)
depview(sys,Name,Value)

Description

example

depview(sys) opens the Model Dependency Viewer, which displays a graph of dependencies for the model or library specified by sys.

example

depview(sys,Name,Value) opens the Model Dependency Viewer as specified by one or more Name,Value pair arguments.

Examples

collapse all

Open the default Model Dependency Viewer for the model sldemo_mdlref_depgraph.

depview('sldemo_mdlref_depgraph');

In Model Files view, node appearance corresponds to file type.

Open the Model Dependency Viewer for the model sldemo_mdlref_depgraph in Model Instances view with a Horizontal layout.

depview('sldemo_mdlref_depgraph','ModelReferenceInstance',true,'ShowHorizontal',true);

In Model Instances view, node appearance corresponds to simulation mode.

Input Arguments

collapse all

Name or path of model or library, specified as a character vector.

Data Types: char

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: depview('sldemo_mdlref_depgraph','ModelReferenceInstance',true,'ShowFullPath',true,'ShowHorizontal',true)

To open a Model Dependency Viewer that shows only models, set this parameter to 'true'. In this view, node appearance corresponds to file type.

Dependencies

You can only set one of 'FileDependenciesExcludingLibraries', 'FileDependenciesIncludingLibraries', and 'ModelReferenceInstance' to 'true'.

To open a Model Dependency Viewer that shows models and user-defined libraries, use the default setting. In this view, node appearance corresponds to file type.

Dependencies

To set this parameter to 'false', enable 'FileDependenciesExcludingLibraries' or 'ModelReferenceInstance'. You can only set one of 'FileDependenciesExcludingLibraries', 'FileDependenciesIncludingLibraries', and 'ModelReferenceInstance' to 'true'.

To open a Model Dependency Viewer that shows models, user-defined libraries, and built-in libraries, set this parameter to 'true'. In this view, node appearance corresponds to file type.

Dependencies

To enable this option, set 'FileDependenciesIncludingLibraries' to 'true'.

To open a Model Dependency Viewer that shows each instance of a model as a separate node in the graph, set this parameter to 'true'. In this view, node appearance corresponds to simulation mode.

Dependencies

You can only set one of 'FileDependenciesExcludingLibraries', 'FileDependenciesIncludingLibraries', and 'ModelReferenceInstance' to 'true'.

To open a Model Dependency Viewer that shows the full path from the top model to each referenced model or library, set this parameter to 'true'. By default, the Model Dependency Viewer shows only the file name in each node. This parameter is available for only the Model Instances view.

Dependencies

To enable this option, set 'ModelReferenceInstance' to 'true'.

To open a Model Dependency Viewer that shows referenced models and libraries to the right of their parents, set this parameter to 'true'. By default, the Model Dependency Viewer shows referenced models and libraries below their parents.

Introduced in R2006b