Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help with this, need to write a MATLAB code: To evaluate the effect of po

ID: 2989983 • Letter: P

Question

Please help with this, need to write a MATLAB code:

To evaluate the effect of pole and zero location upon the time response of first- and second-order systems. Given the transfer function H(s) = a/s+a, evaluate settling time and rise time for the following values of a: 1, 5. and 6. Also, plot the poles. Given the transfer function G(S) = s+b/s2+as+b; Evaluate percent overshoot, settling time, peak time, and rise time for the following values: a = 4; b = 25. Also, plot the poles and zeros. Evaluate percent overshoot, settling time, peak time, and rise time for the following values: a = 2; b = 7. Also, plot the poles and zeros. Discuss the effects of pole location upon the time response for both first- and second-order systems. Discuss any discrepancies between your calculated and experimental values.

Explanation / Answer

a = 1;
sys = tf([a],[1 a]);

stepinfo(sys)

pzmap(sys)

----------------------------------

a = 5;
sys = tf([a],[1 a]);

stepinfo(sys)

pzmap(sys)

--------------------------------------

a = 6;
sys = tf([a],[1 a]);

stepinfo(sys)

pzmap(sys)

---------------------------------------

2)

>> a = 4; b = 25;
>> sys = tf([1 b],[1 a b]);
>> stepinfo(sys)

>> a = 2; b = 7;
>> sys = tf([1 b],[1 a b]);
>> stepinfo(sys)

_______________________________________