params(2).Name = 'Ki1';
params(2).Value = Ki1_grid;
sllin.Parameters = params;
Similar to the workflow for configuring the parameter grid for inner-loop analysis, you
create the structure, params, that specifies a 6x4 parameter grid. You reconfigure
sllin.Parameters to use the new parameter grid. sllin now uses the default values
for Ki2 and Kp2.
Analyze Closed-Loop Transfer Function from Reference To Plant Output
Remove e1 from the list of permanent openings for sllin before proceeding with outer-
loop analysis.
removeOpening(sllin,'e1');
To obtain the closed-loop transfer function from the reference signal, r, to the plant
output, y1m, add r and y1m as analysis points to sllin.
addPoint(sllin,{'r','y1m'});
Obtain the transfer function from r to y1m.
r2yo = getIOTransfer(sllin,'r','y1m');
Plot the step response for r2yo.
stepplot(r2yo);
Batch Linearization to Obtain Multiple Transfer Functions for Varied Parameter Values