subplot(323), viewSurf(TGS.Kt), ylabel('Kt')
subplot(324), viewSurf(TGS.a), ylabel('a')
subplot(325), viewSurf(TGS.b), ylabel('b')
To validate the gain-scheduled controller in Simulink, first use writeBlockValue to
apply the tuning results to the Simulink model. For each Lookup Table block, this
evaluates the corresponding quadratic gain formula at the table breakpoints and updates
the table data accordingly.
writeBlockValue(ST)
Next push the Play button to simulate the response with the tuned gain schedules. The
simulation results appear in Figure 3. The gain-scheduled controller successfully drives
the reaction through the transition with adequate response time and no saturation of the
Gain-Scheduled Control of a Chemical Reactor