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

Obtain the expression for B(s)/A(s) = nun/den with MATLAB: A function B(s)/A(s)

ID: 1718111 • Letter: O

Question

Obtain the expression for B(s)/A(s) = nun/den with MATLAB:
A function B(s)/A(s) consists of the following zeros, poles and gain K:
Zeros at s = -1 , s = -2 Poles at s = 0 , s = -4 , s = -6 Gain K = 5
Obtain the expression for B(s)/A(s) = nun/den with MATLAB:
A function B(s)/A(s) consists of the following zeros, poles and gain K:
Zeros at s = -1 , s = -2 Poles at s = 0 , s = -4 , s = -6 Gain K = 5

A function B(s)/A(s) consists of the following zeros, poles and gain K:
Zeros at s = -1 , s = -2 Poles at s = 0 , s = -4 , s = -6 Gain K = 5

Explanation / Answer

Matlab Code

z=[-1 -2]';
p=[0 -4 -6]';
k=5;
[num,den]=zp2tf(z,p,k);
tf(num,den)

Sample Output

>> Untitled

ans =

   5 s^2 + 15 s + 10
-------------------
s^3 + 10 s^2 + 24 s

Continuous-time transfer function.