GNU Octave可以运行Simulink模型吗?

huangapple go评论81阅读模式
英文:

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:

https://www.scilab.org/software/xcos

huangapple
  • 本文由 发表于 2023年4月19日 14:46:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76051466.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定