Professional Documents
Culture Documents
DSP-LAB-2-Task: Submitted By: Shazir Ali Khan REG NO # SP18-BTN-004 SUBMITTED TO: Maam Zenab Fazal
DSP-LAB-2-Task: Submitted By: Shazir Ali Khan REG NO # SP18-BTN-004 SUBMITTED TO: Maam Zenab Fazal
DSP-LAB-2-Task: Submitted By: Shazir Ali Khan REG NO # SP18-BTN-004 SUBMITTED TO: Maam Zenab Fazal
Figure:
Xjw=fftshift(fft(x,fs));
om=linspace(-fs/2,fs/2,fs);
plot(om,abs(Xjw))
Figure:
s=square(2*pi*2*fn*t);
impT=abs(diff(s))/2;
plot(t(1:length(t)-1),impT)
Figure:
samp=x(1:length(impT)).*(impT);
stem(samp)
Figure:
Figure:
Xjw=fftshift(fft(x,fs));
om=linspace(-fs/2,fs/2,fs);
plot(om,abs(Xjw))
Figure:
s=square(2*pi*2*fn*t);
impT=abs(diff(s))/2;
plot(t(1:length(t)-1),impT)
Figure:
samp=x(1:length(impT)).*(impT);
stem(samp)
Figure: