The magnitude plot for all the models varies in the 3dB range. The phase plot shows the
most variation, approximately 20 degrees, in the [1 10] rad/s interval.
Vary Outer-Loop Controller Gains
For outer-loop analysis, vary the gains of the outer-loop PI controller block, C1. Vary the
proportional gain (Kp1) and integral gain (Ki1) in the 20% range.
Kp1_range = linspace(Kp1*0.8,Kp1*1.2,6);
Ki1_range = linspace(Ki1*0.8,Ki1*1.2,4);
[Kp1_grid, Ki1_grid] = ndgrid(Kp1_range,Ki1_range);
params(1).Name = 'Kp1';
params(1).Value = Kp1_grid;
3 Batch Linearization