Simulink Control Design™ - MathWorks

(Tuis.) #1

Examples


Compare Simulated Model and Linear Model in Time Domain

frest.simCompare lets you lets you examine the results of frequency response
estimation in the time domain. You can compare the simulated model response to the
response of a linear model of the system, such as one obtained by exact linearization.

Estimate the closed-loop response of the plant in the watertank model. First, open the
model.

model = 'watertank';
open_system(model);

Define a linearization I/O set that specifies the plant, and find a steady-state operating
point for estimation.

io(1)=linio('watertank/PID Controller',1,'input');
io(2)=linio('watertank/Water-Tank System',1,'output');

watertank_spec = operspec(model);
opOpts = findopOptions('DisplayReport','off');
op = findop(model,watertank_spec,opOpts);

Create an input signal for estimation. For this example, use a step input.

input = frest.createStep('FinalTime',100);

15 Alphabetical List

Free download pdf