- 'compsensitivity' — Complementary sensitivity
For more information on analysis point types, see “Specify Portion of Model to Linearize”
on page 2-13.
After creating an analysis point, you can change its type using dot notation. For example,
to change an analysis point to be an open-loop output, use:
io.Type = 'openoutput';
You can also specify analysis points on bus elements in your model. For an example, see
linio.
To specify multiple analysis points, create a vector of linearization I/O objects. For
example, create a set of analysis points that includes an input perturbation, an output
measurement, and a loop opening.
io(1) = linio(block1,port1,'input');
io(2) = linio(block2,port2,'output');
io(3) = linio(block3,port3,'loopbreak');
To linearize your model using the specified analysis points, use the linearize function.
Save Analysis Points in Simulink Model
You can save your specified analysis points in your Simulink model using the setlinio
function.
setlinio(mdl,io);
Here, mdl is a character vector specifying the name of a model in the current working
folder or on the MATLAB path, and io is a vector of linearization I/O objects.
The analysis points in io overwrite any existing analysis points saved in the model.
Alternatively, you can specify analysis points directly in your model. For more information,
see “Specify Portion of Model to Linearize in Simulink Model” on page 2-23.
Obtain Analysis Points from Simulink Model
To linearize your model with the linearize function using the analysis points saved in
the model, you must first extract the analysis points using the getlinio function.
2 Linearization