I have a simulink model with subsystems to which are linked inputs and outputs. I would like using MATLAB commands to find from the path of an input, the corresponding input in the parent subsystems.

Example :

My simulink model

Here I want to find "RootInput" using the path of "CurrentInput" using matlab commands.

I have tried using the ports but it doesn’t work in all cases and on the Mathworks doc I haven’t found a way to do it. Is there a solution?

Anonymous Asked question May 14, 2021