% Richard Duncan
% ECE 3133 - 01
%
% 
% Matlab Assignment No. 7:
% 
%  - Generate a 1 kHz sinewave and sample it at a sample frequency of 8 kHz.
% 
%    Plot the magnitude spectrum of the signal using 256 points of signal data.
% 
% All frequency response plots should show the magnitude in dB, phase
% in radians on a [-PI/2, PI/2] scale, and frequency on a linear scale.
% 
% This assignment is due by 04/10/98.
%

% define the data (zero pad h)
%

t = linspace(0,1/1000, 8);

%t_stop = /8000;

%t = linspace(0,t_stop, );

%yt = sin(2 * pi * 1000 * t);

%plot(yt,'k*');

t = linspace(0,(256/8) * (1/1000),256);

yt = sin(2 * pi * 1000 * t);

yf = fft(yf,256);
figure;
plot(20 * log(abs(yf)), 'k*');
figure;
plot(angle(yf), 'k*');
