I have two blocks with same name in my system but in two different subsystems. When I use replace_block both blocks are replaced. But I need to replace the exact block which I have mentioned in the argument list: Example: replace_block(get_param(LookUpnDTableList{index,1}, 'Parent'), 'Name', get_param(LookUpnDTableList{index,1}, 'Name'), NewBlock, 'noprompt') Should only replace the block get_param(LookUpnDTableList{index,1} in this subsystem. not every block. How to do this?
MATLAB: How to replace only a particular block with replace_block
MATLABsimulinksimulink replace_block
Related Question
- Is there a way to automatically replace the Configurable Subsystem blocks in a model with the actual blocks to which they refer in Simulink
- Using replace_block with Simscape
- Does the function REPLACE_BLOCK give an error when using dynamic masking of a library block in Simulink 7.1 (R2008a)
- How to replace Simulink Block links
- Replace column
Best Answer