Specifications
Schedule Controllers at Multiple Operating Points
5-21
When the switch input is 1, the block automatically activates the first controller
that is listed (MPC1), which is appropriate when the masses are separated. When the
switch input is 2, the block automatically enables the second controller (MPC2).
Simulate the controller performance using Simulink commands.
Tstop = 100; % Simulation time
y1initial = 0; % Initial M1 and M2 Positions