Output Arguments
blocks
Block paths of time-varying source blocks in model that can interfere with frequency
response estimation, returned as an array of Simulink.BlockPath objects. blocks
includes time-varying source blocks inside subsystems and normal-mode referenced
models.
If you provide io, blocks contains all time-varying source blocks contributing to the
signal at the output points in io.
If you do not provide io, blocks contains all time-varying source blocks contributing to
the signal at the output points marked in model.
Examples
Estimate the frequency response of a model having time-varying source blocks. This
example shows the use of frest.findSources to identify time-varying source blocks
that interfere with frequency response estimation. You can also see the use of
BlocksToHoldConstant option of frestimateOptions to disable time-varying source
blocks in the estimation.
Load the model scdspeed_ctrlloop.
mdl = 'scdspeed_ctrlloop';
open_system(mdl)
% Convert referenced model to normal mode for accuracy
set_param('scdspeed_ctrlloop/Engine Model',...
'SimulationMode','Normal');
First, view the effects of time-varying source blocks on frequency response estimation. To
do so, perform the estimation without disabling time-varying source blocks.
In this example, linearization I/O points are already defined in the model. Use the
getlinio command to get the I/O points for frestimate.
io = getlinio(mdl)
Define a sinestream signal and compute the estimated frequency response sysest.
frest.findSources