Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Simulink.MDLInfo.getDescription

Class: Simulink.MDLInfo
Package: Simulink

Extract model file description without loading block diagram into memory

Syntax

description = Simulink.MDLInfo.getDescription('mymodel')
description = info.getDescription

Description

description = Simulink.MDLInfo.getDescription('mymodel') returns the description associated with the file mymodel, without loading the model.

mymodel can be:

  • A block diagram name (for example, vdp)

  • The file name for a file on the MATLAB® path (for example, mymodel.slx)

  • A file name relative to the current folder (for example, mydir/mymodel.slx)

  • A fully qualified file name (for example, C:\mydir\mymodel.slx)

description = info.getDescription returns the description property of the Simulink.MDLInfo object info.

Examples

Get the description without loading the model or creating a Simulink.MDLInfo object:

description = Simulink.MDLInfo.getDescription('mymodel')
 

Create a Simulink.MDLInfo object containing all the model information properties, and get the description property:

info = Simulink.MDLInfo('mymodel')
description = info.getDescription
Was this topic helpful?