srcblks is an array of block paths corresponding to the time-varying source blocks in
the model. To examine the result, index into the array.
For example, entering
srcblks(2)
returns the result
ans =
Simulink.BlockPath
Package: Simulink
Block Path:
'scdspeed_ctrlloop/Engine Model'
'scdspeed_plantref/Drag Torque/Step1'
Now you can estimate the frequency response without the contribution of the time-
varying source blocks. To do so, set the BlocksToHoldConstant option of
frestimateOptions equal to srcblks, and run the estimation.
opts = frestimateOptions
opts.BlocksToHoldConstant = srcblks
% Run frestimate again with blocks disabled
[sysest2,simout2] = frestimate(mdl,io,in,opts);
The frequency response estimate now provides a good match to the exact linearization
result.
bodemag(sys,sysest2,'r*')
frest.findSources