Help CenterHelp Center
Extract SLX, SLXP, or MDL file description without loading file
d = Simulink.MDLInfo.getDescription(file)
example
d = Simulink.MDLInfo.getDescription(file) returns the description of the specified SLX, SLXP, or MDL file without loading the file.
d
file
collapse all
Get the description of the vdp model without loading it or creating a Simulink.MDLInfo object for it.
vdp
Simulink.MDLInfo
d = Simulink.MDLInfo.getDescription('vdp')
d = 'The van der Pol Equation This is a simulation of a nonlinear second order system.'
Name of the SLX, SLXP, 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')
Simulink.MDLInfo('vdp')
Example: Simulink.MDLInfo('mymodel.slx')
Simulink.MDLInfo('mymodel.slx')
Example: Simulink.MDLInfo('mydir/mymodel.slx')
Simulink.MDLInfo('mydir/mymodel.slx')
Example: Simulink.MDLInfo('C:/mydir/mymodel.slx')
Simulink.MDLInfo('C:/mydir/mymodel.slx')
Data Types: char | string
char
string
Simulink.MDLInfo | Simulink.MDLInfo.getMetadata
Simulink.MDLInfo.getMetadata
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office