Index Value within the For Each block in Simulink.
7 views (last 30 days)
Is there a way to get the index value within the For Each block in Simulink.
Lets say that I have a 5x1 array of sub-busses and I use For Each block to operate on these 5 elements within the bus separately.
I would like to be able to execute a logic that is dependent on the order (index) of the element within the array of subbusses.
Thanks in advance