'ParameterValues','');
set_param(pwmblock,'SCDBlockLinearizationSpecification',rep);
set_param('scdpwmharddrive/Duty cycle','SampleTime','Ts_plant');
Linearize the model.
set_param(SimscapeSolver,'UseLocalSolver','off')
sys = linearize(model,io);
set_param(SimscapeSolver,'UseLocalSolver','on')
You can validate the overall linearization result using frequency response estimation,
using the following commands:
valinput = frest.Sinestream(sys);
valinput = fselect(valinput,3e3,1e5);
valinput.Amplitude = 0.1;
sysval = frestimate(model,io,valinput);
The frequency response estimation can take several minutes. For this example, load the
estimation results.
load scdpwmharddrive_valfreqresults.mat
bodemag(sys,sysval,'r*')
Specifying Linearization for Model Components Using System Identification