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.
depview(
opens the Dependency
Analyzer and displays a graph of dependencies for the model or library specified by
sys
)sys
.
depview(
opens the Dependency Analyzer and displays a graph of dependencies as specified by
one or more sys
,Name,Value
)Name,Value
pair arguments.
Examples
Open Dependency Analyzer with Default Settings
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 Dependency Analyzer with Custom Settings
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
sys
— Name or path of model or library
' '
(default) | character vector
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
.
FileDependenciesExcludingLibraries
— Graph with only models
false (default) | true
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
.
FileDependenciesIncludingLibraries
— Graph with models and user-defined libraries
true (default) | false
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
.
ModelReferenceInstance
— Graph with only models that shows each model instance separately
false (default) | 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
.
ShowHorizontal
— Horizontal dependency display
false (default) | 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
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)