MATLAB: How to ensure that built-in blocks added to the model using the ADD_BLOCK command are appropriately sized in Simulink 7.6 (R2010b)

simulink

I add a block to my model using
add_block('built-in/blocktype','modelname/blockname')
Instead of appearing as it does when I add a block from the Simulink Library Browser, it is a small square with basic parameter values.

Best Answer

To ensure that the added block has the same size and settings as the Simulink Library Browser block, add the block using the full path.
For example, instead of
add_block('built-in/Scope', 'MyModel/MyScope')
try
add_block('simulink/Sinks/Scope', 'MyModel/MyScope')