In this example, create a sine stream that sweeps frequency from 0.1 to 10 rad/sec with
an amplitude of 1e-3. You can inspect the estimation results using the bode plot.
Construct the sinestream signal.
in = frest.Sinestream('Frequency',logspace(-1,1,50),'Amplitude',1e-3);
Estimate the frequency response. This process can take a few minutes.
sys = frestimate(mdl,io,in);
Display the estimated frequency response.
bode(sys)
Design PID Controller Using Estimated Frequency Response