FAST FOURIER TRANSFORM in MATLAB
clc
n=0:3;
x_n=[1,1,2,3];
subplot(3,1,1);
stem(n,x_n);
N=4;
X_K=fft(x_n,N);
k=0:3;
subplot(3,1,2);
stem(k,abs(X_K));
subplot(3,1,3);
n=0:3;
x_n=[1,1,2,3];
subplot(3,1,1);
stem(n,x_n);
N=4;
X_K=fft(x_n,N);
k=0:3;
subplot(3,1,2);
stem(k,abs(X_K));
subplot(3,1,3);
stem(k,angle(X_K));
No comments