mdl2struct.m

Convert Simulink source file to structure.

You are now following this Submission

MDL2STRUCT Convert Simulink source file to structure
MDL = MDL2STRUCT(FILENAME) read a Simulink source file given
by the string FILENAME and converts it to a structure MDL that
containts all the information of the Simulink souce file in
hierarchical order (watch any .mdl file in an ASCII viewer to
see what that means).

Example: myModel = mdl2struct('C:\MATLAB\work\mySimulinkModel.mdl')

Cite As

Kaspar Thommen (2026). mdl2struct.m (https://se.mathworks.com/matlabcentral/fileexchange/3539-mdl2struct-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0