How convert simulink files to XML

不打扰是莪最后的温柔 提交于 2020-01-10 20:11:28

问题


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 solution for this in Java?


回答1:


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);



回答2:


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.



来源:https://stackoverflow.com/questions/11006599/how-convert-simulink-files-to-xml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!