The signal at the frd port is a vector containing the current values of the estimated
response at each frequency in w. The To Workspace block connected to that port writes
the signal to the MATLAB® workspace variable frdata. In the To Workspace block, the
Limit data points to last parameter is set to 1, so that frdata contains only the final
estimated responses at each frequency. Convert frdata to a frd model object.
sys_estim = frd(frdata,w);
size(sys_estim)
FRD model with 1 outputs, 1 inputs, and 20 frequency points.
You can now use sys_estim with Control System Toolbox™ analysis and control design
commands that accept frd models as input, such as bode and pidtune. Alternatively, if
Online Frequency Response Estimation During Simulation