Professional Documents
Culture Documents
Exercice 1
Exercice 1
syms z n
ztrans(3+0*n)
ztrans(3+2*n)
ztrans(0.5^n)
ztrans(2*0.5^n)
ztrans(2*n*2^n)
iztrans((0.5*z)/z-1)
iztrans(z/(0.5*(z-1)^2))
iztrans(2*z/(z+0.5)+(3*z)/((z-1)))
iztrans(6*z/(z-6))
>> syms z n
>> TP
ans =
(3*z)/(z - 1)
ans =
ans =
z/(z - 1/2)
ans =
(2*z)/(z - 1/2)
ans =
(4*z)/(z - 2)^2
ans =
-kroneckerDelta(n, 0)/2
ans =
2*n
ans =
2*(-1/2)^n + 3
ans =
6*6^n
>>
1)
clear all
close all
clc
num=[1,-1,-6]
dem=[1,2,-3]
2)
[R,P,K] = residuez(num,dem)
3)
iztrans((1-(z^-1)-(6*z^-2))/(1+(2*z^-1)-(3*z^-2)))
4)
numh = roots(num)
demh = roots(dem)
2.5
Pole
2 0
1.5
1
Imaginary Part
0.5
-0.5
-1
-1.5
7)
-2
-2.5
-3 -2 -1 0 1 2 3
Real Part
Non stable car le cercle de rayon 1 ne passe pas par la zone de
convergence
Exercice3
clear all
close all
clc
syms z n
num=[1,0,-0.25]
dem=[1,1,1]
[R,P,K] = residuez(num,dem)
3)
clear all
close all
clc
syms z n
num=[1,0,-0.25]
dem=[1,1,1]
[R,P,K] = residuez(num,dem)
iztrans((1-0.25*(z^-2)/(1+z^-1+z^-2)))
ans =
(3*kroneckerDelta(n, 0))/4 - ((-1)^n*3^(1/2)*(1/2 -
(3^(1/2)*1i)/2)^(n - 1)*1i)/12 + ((-
1)^n*3^(1/2)*((3^(1/2)*1i)/2 + 1/2)^(n - 1)*1i)/12
4)
clear all
close all
clc
syms z n
num=[1,0,-0.25]
dem=[1,1,1]
[R,P,K] = residuez(num,dem)
iztrans((1-0.25*(z^-2)/(1+z^-1+z^-2)))
n=0:12
y=((n)>=0)
d=(n==0)
h =(-4.*d + 3.5.*(0.5).^n + 1.5.*(-0.5).^n).*y
xlabel("n")
ylabel("h(n)")
stem(n,h)
1.4
1.2
0.8
0.6
0.4
0.2
0
0 2 4 6 8 10 12
5)
clear all
close all
clc
syms z n
num=[1,0,-0.25]
dem=[1,1,1]
[R,P,K] = residuez(num,dem)
iztrans((1-0.25*(z^-2)/(1+z^-1+z^-2)))
n=0:12
y=((n)>=0)
d=(n==0)
h =(-4.*d + 3.5.*(0.5).^n + 1.5.*(-0.5).^n).*y
impz(num,dem)
xlabel("n")
ylabel("h")
stem(n,h)
1.4
1.2
0.8
0.6
0.4
0.2
0
0 2 4 6 8 10 12
6)
clear all
close all
clc
syms z n
dem=[1,0,-0.25]
num=[1,1,1]
[R,P,K] = residuez(num,dem)
iztrans((1+z^-1+z^-2)/(1-0.25*(z^-2)))
n=0:19
y=((n)>=0)
d=(n==0)
h =(-4.*d + 3.5*(0.5).^n + 1.5.*(-0.5).^n).*y;
[H,T]=impz(num,dem,20);
xlabel("n")
ylabel("h")
stem(n,h,'r')
hold on
stem(T,H,'b+')
1.4
1.2
0.8
0.6
0.4
0.2
0
0 2 4 6 8 10 12 14 16 18 20
7)
numh = roots(num)
denh = roots(dem)
numh =
-0.5000 + 0.8660i
-0.5000 - 0.8660i
denh =
0.5000
-0.5000
8) |z|>0.5
9)
numh = roots(num)
denh = roots(dem)
zplane(num,dem)
legend("Pole","0")
1
Pole
0
0.8
0.6
0.4
Imaginary Part
0.2
-0.2
-0.4
-0.6
-0.8
-1
-1 -0.5 0 0.5 1
Real Part
1)Le systeme est stable car le cercle de rayon 1 appartient au domaine de convergence
clear all
close all
clc
syms z n
dem=[1,0,-0.25]
num=[1,1,1]
[R,P,K] = residuez(num,dem)
iztrans((1+z^-1+z^-2)/(1-0.25*(z^-2)))
n=0:19
y=((n)>=0)
d=(n==0)
h =(-4.*d + 3.5*(0.5).^n + 1.5.*(-0.5).^n).*y;
[H,T]=impz(num,dem,20);
xlabel("n")
ylabel("h")
20
Magnitude (dB)
-20
-40
-60
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Normalized Frequency ( rad/sample)
100
Phase (degrees)
-100
12)
[H,w]
-200 =freq
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 z(num
Normalized Frequency ( rad/sample) ,den)
plot(w/pi,20*log10