Im trying to modulate a hybrid dynamic system with simscape and stateflow. When there is a transition between two states, also the subsystem relevant for the simulation changes. To make the transition between the two subsystems continous, I need to pass some information from the one subsystem to the other, to use them as intial values.
As the "Joint Initial Condition"-Block has no input-port, I assume the only possibility is by using variables. So I need to set the variable during the simulation, but cant find anywhere how to handle this.