p.XLim = {[0.1 1000]};
f = figure;
bode(sys_1st_order_approx,sys_2nd_order_approx,sys_exact,p);
h = legend('sys_1st_order_approx','sys_2nd_order_approx','sys_exact',...
'Location','SouthWest');
h.Interpreter = 'none';
In the case of a first order approximation, the phase begins to diverge around 50 rad/s
and diverges around 100 rad/s.
Close the Simulink model.
bdclose(model)
2 Linearization