Signals and System TP2
Signals and System TP2
2𝑠 3 +𝑠 2 +3
Set 𝐻 (𝑠 ) =
7𝑠 2 +5𝑠+9
Since r =
-0.0860 - 0.2797i
-0.0860 + 0.2797i
p=
-0.2143 + 1.1135i
-0.2143 - 1.1135i
k=
0.2857 -0.1224
Code
[r,p,k]=residue(num,den)
H=(-0.0860 - 0.2797i)/(s-( -0.2143 + 1.1135i))+( -0.0860 + 0.2797i)/(s-(-0.2143 -
1.1135i))+0.2857*s-0.1224
Pretty(H)
Fnd the impulse response h(t) of this system
Code
h(t)=ilaplace(H(s))
pretty(h(t))
Plot real, imag, magnitude,phase of h(t)
Code
t=-20:20;
h=ilaplace(H(s));
subplot(2,2,1)
plot(t,real(h));
ylabel('real part of h');
xlabel('time(t)');
subplot(2,2,2);
plot(t,imag(h));
ylabel('imagine part of h');
xlabel('time(t)');
subplot(2,2,3);
plot(t,abs(h));
ylabel(' magnitude of h');
xlabel('time(t)');
subplot(2,2,4);
plot(t,angle(h));
ylabel('phase of h');
Bode H(s)
Code
num=[2 1 0 3];
den=[0 7 5 9];
bode(num,den);
find and plot the step response of this system with x(t)=u(t)
Code
>> step(den,num,0:1:20)
challenge to draw the region of convergence (ROC) of H(s)
Code
>> pzmap(num,den)