问题
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