Get the linearization analysis points specified in the model.
io = getlinio(mdl);
Vary the plant parameters R and J.
[R_grid,J_grid] = ndgrid(R,J);
params(1).Name = 'R';
params(1).Value = R_grid;
params(2).Name = 'J';
params(2).Value = J_grid;
Linearize the model for each parameter value combination.
sys = linearize(mdl,io,params);
Open Control System Designer
Open Control System Designer, and import the array of plant models. using the
following command.
controlSystemDesigner(sys)
Using Control System Designer, you can design a controller for the nominal plant
model while simultaneously visualizing the effect on the other plant models as shown
below.
Reference Tracking of DC Motor with Parameter Variations