Verification of DFT Properties
Verification of DFT Properties
Verification of DFT Properties
Inference:
Inference:
1
Time shift property verified
Linearity Property
x1=input('Enter Sequence 1 : ');
x2=input('Enter Sequence 2 of same length as x1 : '); % Enter same length sequences
a1=input('Enter a1 = ');
a2=input('Enter a2 = ');
x1f=fft(x1);
x2f=fft(x2);
x3f= a1*x1f+a2*x2f;
x3= a1*fft(x1)+a2*fft(x2);
if (round(x3)==round(x3f))
disp('Linearity property verified');
end
Parsevals Identity
x1=x1(:);
x1f=x1f(:);
N=length(x1f);
Entime=x1'*x1;
Enfreq=(x1f'*x1f)/N;
if (round(Entime)==round(Enfreq))
disp('Parseval Identity verified');
end
Inference:
Correlation:
2
Correlation determines the degree of similarity between two signals. If the signals are identical, then the
correlation coefficient is 1; if they are totally different, the correlation coefficient is 0, and if they are identical
except that the phase is shifted by exactly 1800(i.e. mirrored), then the correlation coefficient is -1.
Autocorrelation:
disp(Rxx);
3
Cross correlation
disp(Rxy);
Columns 1 through 10
Columns 11 through 15
4
15.0000 13.0000 13.0000 5.0000 6.0000
N=max(n1,n2) ;
Inference: