Note that you can use 'built-in/BlockType' as an input argument to the ADD_BLOCK function to represent a source block, where 'BlockType' is the built-in block's type. However, the ADD_BLOCK function allows this syntax only for blocks that are
- available in Simulink block libraries
- not masked subsystems
Otherwise, you must specify the source block using its full pathname, e.g., as returned by the GCB function. Note that the full pathname often includes spaces and new line characters that you must represent in the ADD_BLOCK input argument string.
For example, to add the Check Dynamic Upper Bound block to your model, enter the following at the MATLAB prompt:
blkName = sprintf('simulink/Model\nVerification/Check Dynamic \nUpper Bound');
addblock(blkName,'mymodel/CDUB2')
Best Answer