Convert function to Simulink block

独自空忆成欢 提交于 2019-12-10 04:35:42

问题


How do I convert from a function, that I have written as an m-file, into a block in a Simulink model?


回答1:


There's a video here that shows some options. Basically, use the MATLAB Function block. Or, if you want to keep the code separate (and don't care about code generation), you can use the MATLAB Interpreted Function block.



来源:https://stackoverflow.com/questions/2225248/convert-function-to-simulink-block

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