In Embed, discrete and continuous time blocks can be used together in a model. Such systems are called hybrid systems. In hybrid systems, the outputs of the discrete blocks are held constant between successive sample times, and updated at times that correspond to the specified discrete sample time. The outputs of continuous blocks are updated at every time step. Similarly, the inputs to the discrete blocks are updated at times that correspond to the discrete time interval while the inputs to continuous blocks are updated at every time step.
Hybrid systems can also be multi-rate. To specify multi-rate subsystems, use different sample times in the corresponding discrete transferFunction or stateSpace blocks. For hybrid system simulation, the simulation time-step must be set to a value equal to or less than the smallest value of all the sample times used in the discrete blocks.