You are on page 1of 3

%-- 12/10/10 10:41 PM --%

%-- 17/11/10 3:44 PM --%


%-- 17/11/10 3:50 PM --%
%-- 17/11/10 3:58 PM --%
%-- 17/11/10 3:59 PM --%
%-- 17/11/10 4:00 PM --%
%-- 17/11/10 10:23 PM --%
%-- 3/9/11 7:56 PM --%
x = [1 zeros(1,11)];
fftgui(x)
int x;
x = [1 zeros(1,11)];
fftgui(x);
int x;
x = [1 zeros(1,11)];
fft(x);
end
int x;
x = [1 zeros(1,11)];
fft(x);
plot (x);
plot fft (x);
y= fft (x);
plot (y);
x = [0 1 zeros(1,10)]
y= fft (x);
plot (y);
N= input ('Type in the length of the sequence =');
10
M= input ('Type in the length of the DFT =');
10
u= [ones (1,N)];
u= ones (1,N);
U= fft (u,M);
t=0:1:N-1;
stem(t,u)
title ('original domain sequence')
xlabel ('Time Index');
ylabel ('Amplitude');
pause
subplot (2,1,1)
k=0:1:M-1;
stem(k,abs(U))
title ('Magnitude of DFT samples ')
xlabel ('Frequency Index k');
ylabel ('Magnitude');
subplot (2,1,1)
stem (k, angle(U))
title ('phase of DFT samples ')
xlabel ('Frequency Index k');;
ylabel ('Magnitude');
%-- 4/9/11 9:02 PM --%
%-- 12/10/10 10:41 PM --%
%-- 17/11/10 3:44 PM --%
%-- 17/11/10 3:50 PM --%
%-- 17/11/10 3:58 PM --%
%-- 17/11/10 3:59 PM --%

%-- 17/11/10 4:00 PM --%


%-- 17/11/10 10:23 PM --%
%-- 3/9/11 7:56 PM --%
x = [1 zeros(1,11)];
fftgui(x)
int x;
x = [1 zeros(1,11)];
fftgui(x);
int x;
x = [1 zeros(1,11)];
fft(x);
end
int x;
x = [1 zeros(1,11)];
fft(x);
plot (x);
plot fft (x);
y= fft (x);
plot (y);
x = [0 1 zeros(1,10)]
y= fft (x);
plot (y);
N= input ('Type in the length of the sequence =');
10
M= input ('Type in the length of the DFT =');
10
u= [ones (1,N)];
u= ones (1,N);
U= fft (u,M);
t=0:1:N-1;
stem(t,u)
title ('original domain sequence')
xlabel ('Time Index');
ylabel ('Amplitude');
pause
subplot (2,1,1)
k=0:1:M-1;
stem(k,abs(U))
title ('Magnitude of DFT samples ')
xlabel ('Frequency Index k');
ylabel ('Magnitude');
subplot (2,1,1)
stem (k, angle(U))
title ('phase of DFT samples ')
xlabel ('Frequency Index k');;
ylabel ('Magnitude');
%-- 12/10/10 10:41 PM --%
%-- 17/11/10 3:44 PM --%
%-- 17/11/10 3:50 PM --%
%-- 17/11/10 3:58 PM --%
%-- 17/11/10 3:59 PM --%
%-- 17/11/10 4:00 PM --%
%-- 17/11/10 10:23 PM --%
%-- 3/9/11 7:56 PM --%
x = [1 zeros(1,11)];
fftgui(x)
int x;

x = [1 zeros(1,11)];
fftgui(x);
int x;
x = [1 zeros(1,11)];
fft(x);
end
int x;
x = [1 zeros(1,11)];
fft(x);
plot (x);
plot fft (x);
y= fft (x);
plot (y);
x = [0 1 zeros(1,10)]
y= fft (x);
plot (y);
N= input ('Type in the length of the sequence =');
10
M= input ('Type in the length of the DFT =');
10
u= [ones (1,N)];
u= ones (1,N);
U= fft (u,M);
t=0:1:N-1;
stem(t,u)
title ('original domain sequence')
xlabel ('Time Index');
ylabel ('Amplitude');
pause
subplot (2,1,1)
k=0:1:M-1;
stem(k,abs(U))
title ('Magnitude of DFT samples ')
xlabel ('Frequency Index k');
ylabel ('Magnitude');
subplot (2,1,1)
stem (k, angle(U))
title ('phase of DFT samples ')
xlabel ('Frequency Index k');
ylabel ('Magnitude');
%-- 4/9/11 9:02 PM --%
%-- 13/10/11 9:24 PM --%

You might also like