Main Content

depview

Analyze and visualize model referencing dependencies with or without library dependencies

Description

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

example

depview(sys) opens the Dependency Analyzer and displays a graph of dependencies for the model or library specified by sys.

example

depview(sys,Name,Value) opens the Dependency Analyzer and displays a graph of dependencies as specified by one or more Name,Value pair arguments.

Examples

collapse all

Open the project that contains the sldemo_mdlref_depgraph model.

openProject('ModelReferenceHierarchy');

Open the Dependency Analyzer for the sldemo_mdlref_depgraph model.

depview('sldemo_mdlref_depgraph');

Open the project that contains the sldemo_mdlref_depgraph model.

openProject('ModelReferenceHierarchy');

Open the Dependency Analyzer for the sldemo_mdlref_depgraph model 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 Arguments

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

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 two name and value pair arguments in any order as Name1,Value1,Name2,Value2.

To open the dependency graph with 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 the dependency graph with models and user-defined libraries, use the default setting. In this view, node appearance corresponds to file type.

Dependencies

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

To open the dependency graph with 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 the dependency graph with referenced models and libraries to the right of their parents, set this parameter to true. By default, the Dependency Analyzer shows referenced models and libraries below their parents.

Version History

Introduced in R2006b