Batch Linearize Model at Multiple Operating Points
Using linearize Command
This example shows how to use the linearize command to batch linearize a model at
varying operating points.
Obtain the plant transfer function, modeled by the Water-Tank System block, for the
watertank model. You can analyze the batch linearization results to study the operating
point effects on the model behavior.
Open the model.
open_system('watertank')
Specify the linearization I/Os.
ios(1) = linio('watertank/PID Controller',1,'input');
ios(2) = linio('watertank/Water-Tank System',1,'openoutput');
ios(2) specifies an open-loop output point; the loop opening eliminates the effects of
feedback.
You can linearize the model using trimmed operating points, the model initial condition,
or simulation snapshot times. For this example, linearize the model at specified simulation
snapshot times.
ops_tsnapshot = [1,20];
3 Batch Linearization