Examine Estimation Results Using Simulation Results Viewer
The Simulation Results Viewer lets you examine the results of frequency response
estimation frequency by frequency. You open the viewer using the frest.simView
command. To do so, store the simulation data using the simout output argument of
frestimate.
Estimate the open-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,'openoutput');
watertank_spec = operspec(model);
opOpts = findopOptions('DisplayReport','off');
op = findop(model,watertank_spec,opOpts);
Then, create an input signal for estimation, and estimate the frequency response of the
specified portion of the model. Use the simout output argument to store the estimation
data.
input = frest.Sinestream('Frequency',logspace(-3,2,10));
[sysest,simout] = frestimate(model,op,io,input);
15 Alphabetical List