In a simulink subsystem, I would like to replace all From
-blocks by corresponding In-/Outports
and a From
-block in the parent system. Is there a MATLAB function which returns the parent system of a subsystem, or a convenient way to achieve this without tweaking path strings?