% Richard Duncan
% EE3133
% Assignment 1: Introduction to Matlab
% 1/16/98
%
% Generate a 1kHz sine wave with +/- 1V amplitude
% Plot between 0 and 0.1 seconds, produce graphic file
%
syms y t

% define the frequency, 1kHz
%
f = 1000

% Define the general sine function 
%
y = sin(2 * pi * f * t)
% Generate a linear vector of data, between 0 and 0.1 seconds, ste  100us
%
t = [0:0.0001:0.1]

% plot the sine wave
%
plot(t,eval(y))

% produce a tiff file from the output. This may easily be converted
% into a gif file through use of `xv` or other graphics packages.
%
print -dtiff asn_0.tiff

% end of file
%
