from
DISCRETE FOURIER TRANSFORM_ONE DIMENSIONAL
by antonynycil
This program helps to find the 1D DFT and plot the phase and magnitude plot of DFT of the sequence
|
| discrete_fouriertranform.m |
%---------- MAIN FUNCTION --------------------------%
clc;
clear;
x = input('ENTER THE NUMBERS : ');
[y]=fun_dfft(x)
subplot(2,1,1);
stem(abs(y));
title(' Magnitude plot');
xlabel('Frequency component');
ylabel('Absolute');
subplot(2,1,2);
stem(angle(y));
title('Phase plot');
xlabel('Frequency component');
ylabel('Angle');
|
|
Contact us