Specifications

5 Designing and Testing Controllers in Simulink
5-22
y2initial = 10;
open('mpc_switching');
sim('mpc_switching',Tstop);
The figure below shows the signals scope output.