I know it is possible to create a system in matlab and connect modules using the <code>connect(SYS, SRCPIN, DSTPIN);</code>syntax, but is there a way to disconnect modules? If I have an existing layout like
INPUT ------> OUTPUT
and I want to put a filter in between the input and the output,
INPUT ------> FILTER ------> OUTPUT
doing something like <code>connect(SYS, 'INPUT', 'FILTER', 'OUTPUT');</code> is throwing the "AWE ERROR:Illegal fan in. There is already a wire connected to OUTPUT"
Is there a way to use the matlab API to insert a module between two other modules/pins or to disconnect two modules so that I can then use the connect command to join them back together?