programmatically adding “matlab function” block to simuliink

北慕城南 提交于 2019-12-01 10:00:30

问题


can anyone tell me how to add the "MATLAB Function" block to a simulink model which I am constructing programmatically? Once I add it, I will also need to know how to modify the code, which doesn't seem to be hiding inside any of the parameters I get from get_param(my_fcn_block,'ObjectParameters').

As a workaround I'm currently saving a customised block to my library and inserting this with add_block('my_lib/my_fcn_block','my_fcn_block')

来源:https://stackoverflow.com/questions/19494423/programmatically-adding-matlab-function-block-to-simuliink

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