Professional Documents
Culture Documents
Untitled 4
Untitled 4
Warning: For transient data (step or impulse experiment), make sure that the change in input signal does not
happen too early relative to the order of the desired model. You can achieve this by prepending sufficient
number of zeros (equilibrium values) to the input and output signals. For example, a step input must be
represented as [zeros(nx,1); ones(N,1)] rather than ones(N,1), such that nx > model order.
disp('Analysis Results:');
Analysis Results:
analysis_results = stepinfo(est_tf);
system_gain = est_tf.Numerator;
system_damping_ratio = analysis_results.Overshoot / 100;
system_natural_frequency = 1 / (2 * pi * analysis_results.PeakTime);
system_poles_zeros = pole(est_tf);
system_settling_time = analysis_results.SettlingTime;
system_rise_time = analysis_results.RiseTime;
system_percent_overshoot = analysis_results.Overshoot;
disp(['Gain: ', num2str(system_gain)]);
Damping Ratio: 0
Poles/Zeros: -0.092915
Percent Overshoot: 0
figure;
pzmap(est_tf);
1
title('Pole-Zero Map');
figure;
bode(est_tf);
title('Bode Plot');
2
figure;
impulse(est_tf);
3
title('Impulse Response');
figure;
step(est_tf);
title('Step Response');