Frequency resolution using Zero Padding | DFT | MATLAB

Published: 31 March 2020
on channel: Knowledge Amplifier
3,578
35

Codes used in the video:
1)
DFT as sampled version of DTFT:
clc
clear all
close all
n=-20:21;
xn=cos(2*pi*0.2*n);
w=0:0.01:pi;
for i=1:length(w)
xw(i)=sum(xn.*exp(-1i*w(i)*n));
end
plot(w,abs(xw));
hold on;
N=42;
y=fft(xn,42);
y=y(1:(N/2)+1);
k=0:N/2;
stem(2*pi*k/N,abs(y));

2)
Zero padding concept:
clc
clear all
close all
n=-20:21;
xn=cos(2*pi*0.2*n);
N=512;
y=fft(xn,N);
y=y(1:(N/2)+1);
k=0:N/2;
plot(2*pi*k/N,abs(y));

Prerequisite 1:
Plot the magnitude plot of Discrete Time Fourier Transform | MATLAB
   • Plot the magnitude plot of Discrete Time F...  
Prerequisite 2:
Interpreting the DFT | MATLAB
   • Interpreting the DFT | MATLAB  
Prerequisite 3:
FAST FOURIER TRANSFORM in MATLAB
   • FAST FOURIER TRANSFORM in MATLAB  


On this page of the site you can watch the video online Frequency resolution using Zero Padding | DFT | MATLAB with a duration of hours minute second in good quality, which was uploaded by the user Knowledge Amplifier 31 March 2020, share the link with friends and acquaintances, this video has already been watched 3,578 times on youtube and it was liked by 35 viewers. Enjoy your viewing!