英文:
Can GNU Octave run simulink model?
问题
从我的理解来看,GNU Octave可以运行.m文件中的函数。它是否也可以运行Simulink模型?
例如,在一个.m文件中执行以下操作:
rv = sim('simulink_model.slx');
rv.Output.Data
然后可能从Octave中调用它?我无法自己尝试这个,因为我没有Simulink。
英文:
From what I understand, GNU Octave can run functions in .m files. Can it run simulink models too?
For example, doing this in an m file:
rv = sim('simulink_model.slx');
rv.Output.Data
And perhaps call this from Octave? I'm unable to try this myself because I don't have simulink.
答案1
得分: 2
No, not natively. You would need to use Scilab xcos and the Sci cosim Octave toolbox to communicate with it from Octave (see the docs) or run it directly from Scilab.
即使如此,我认为您仍然需要重新编写您的Simulink模型,可以在此处找到一项比较:
http://x-engineer.org/xcos-vs-simulink-continuous-time
官方的xcos文档可以在此处找到:
https://www.scilab.org/software/xcos
英文:
No, not natively. You would need to use Scilab xcos and the Sci cosim Octave toolbox to communicate with it from Octave (see the docs) or run it directly from Scilab.
Even then I believe you'd need to re-write your Simulink models, one comparison can be found here:
http://x-engineer.org/xcos-vs-simulink-continuous-time
And the official xcos docs can be found here:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论