Documentation Center

  • Trial Software
  • Product Updates

simscape.dependency.model

Package: simscape.dependency

Check dependencies for model

Syntax

[fn_list, missing, reference2fnList, reference2missing] = simscape.dependency.model('modelName')

Description

[fn_list, missing, reference2fnList, reference2missing] = simscape.dependency.model('modelName') checks dependencies for a model containing Simscape™ and Simulink® blocks. modelName specifies the name of the model (either without path, or with relative path, or with absolute path). The model file extension (.slx or .mdl) is optional.

You must open the model first.

This command returns dependency information regarding Simscape files and blocks only. To perform a complete dependencies check for a model, use the Simulink Manifest Tools. For more information, see Analyze Model Dependencies.

If during the analysis this command encounters a Simscape file located inside the MATLAB® root folder, it returns the file name without performing any further analysis on this file, because all the dependent files in this case are part of standard MathWorks installation.

Output Arguments

fn_list

A cell array of strings containing the full paths of all existing files referenced by the model modelName.

missing

A cell array of strings containing the names of all files that are referenced by the model modelName but cannot be found.

reference2fnList

A list of structures, each of which includes a field 'names' as a list of file names causing the reference, and a field 'type' as the reference type for each file. Two reference types are used: 'Simscape component' indicates reference from a model block. 'Simscape' indicates reference from a file.

reference2missing

A list of structures, each of which includes a field 'names' as a list of missing file names, and a field 'type' as the reference type for each file. Two reference types are used: 'Simscape component' indicates reference from a model block. 'Simscape' indicates reference from a file.

See Also

|

Was this topic helpful?