How convert simulink files to XML

后端 未结 2 553
粉色の甜心
粉色の甜心 2021-01-03 11:52

I need convert an Simulink file (.mdl) to an XML file, after any searches i\'m not found any content to help me with this problem.

You\'d know some way or ready solu

相关标签:
2条回答
  • 2021-01-03 12:32

    Starting in R2008b, you can export an .mdl file to an .xml file using save_system,

    >> save_system('model.mdl', 'model_xml.xml','ExportToXML', true);
    
    0 讨论(0)
  • 2021-01-03 12:33

    I know of no easy solution.

    However, there are a couple of libraries in Java that apparently can parse simulink files. They should be sufficient to give you an in-memory representation, and you could then use an XML binding to produce passable XML.

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