Obtaining the model topology from a Simulink model

前端 未结 1 1347
死守一世寂寞
死守一世寂寞 2021-01-06 03:09

I would like to create a structure in Python which represents a Simulink model. I am aware of at least two ways of doing this - by parsing an \".mdl\" file, or by using Matl

相关标签:
1条回答
  • 2021-01-06 04:09

    Not my area, but noticed this Python parser which may be helpful.

    Or you can purchase the Simulink Report Generator in order to save/manipulate the model as a XML file.

    Or the *.mdl file is a readable ascii file. You could read it into a string with a fread statement, alter the string, then either save it to your format of choice or write it back out to a *.mdl file. My coworker thought of this, not me! But would require doing the editing/parsing with a routine you write yourself.

    0 讨论(0)
提交回复
热议问题