Main Content


Extract SLX or MDL file description without loading file



d = Simulink.MDLInfo.getDescription(file) returns the description of the specified SLX or MDL file without loading the file.


collapse all

Get the description of the vdp model without loading it or creating a Simulink.MDLInfo object for it.

d = Simulink.MDLInfo.getDescription('vdp')
d =

    'The van der Pol Equation
     This is a simulation of a nonlinear second order system.'

Input Arguments

collapse all

Name of the SLX or MDL file, specified as a character vector or string scalar.

The file name can include a partial path, complete path, relative path, or no path. When you do not provide a path, the file extension is optional.

To avoid unexpected results caused by shadowed files that share a name, specify a fully qualified file name.

Example: Simulink.MDLInfo('vdp')

Example: Simulink.MDLInfo('mymodel.slx')

Example: Simulink.MDLInfo('mydir/mymodel.slx')

Example: Simulink.MDLInfo('C:/mydir/mymodel.slx')

Data Types: char | string

Introduced in R2009b