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
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.