Sie sind auf Seite 1von 6

EXPERIMENT NO.

- 4
AIM- To write a MATLAB program to:
a) find z-transform of a sequence
b) find residues , poles and direct coefficients for partial
fraction of a given sequence.
c) plot poles and zeros of given H(Z).
CODEsyms z;
f = input ( 'Enter Sequence');
c = length(f);
for i=1:c
z_trans(i) = [ f(i)*z^-(i-1)];
end
sum(z_trans)
num = input('input the numerator');
den = input('input the denominator');
[r, p, k] = residuez(num, den)
num = input('Enter numerator coeffcients');
den = input('Enter denominator coeffcients');
zplane(num,den)

OUTPUT-

EXPERIMENT NO.- 5
AIM- Write MATLAB code to test whether given z-transform is
stable or not .
CODEa = input('Enter coefficients of denominator')
m = length(a)
count=0;
for i=1:m
k=a(m-i+1);
if(i<m)
if (abs(k)>=1)
disp('unstable')
count=1;
break

end
else
if(abs(k)>1)
disp('unstable')
count=1;
break
end

end
b= fliplr(a);
a = (a- k.*b)/(1-(k^2));
end
if (count==0)
disp('stable');
end

OUTPUTSHIVAM(2K14/EC/153) , ROBIN YADAV(2K14/EC/136)

RESULT- The stability test using Schur Cohn test was


successfully studied using MATLAB.

Digital Signal Processing


LAB FILE

SUBMITTED BY
SHIVAM
2K14/EC/153
ECE-E

Das könnte Ihnen auch gefallen