% DEMO:         THE PURE TONE A
%
% Program:      pure_tone_A.m
% Written by:   CT Mullis
% For:          EE 311
%               Demo For Computer Lab 3
% Date:         7-14--2001
% Purpose:      Uses the sound command to play the
%               tone A for 1 second.

A=.5;                 % Amplitude of 1/2
fs=6000;              % Sampling Frequency
t=0:1/fs:1;
f0=440;               % The tone A (440 Hz)
x=A*cos(2*pi*f0*t);
sound(x,fs)           % Play the tone A for one second