% file generating a sinusoidal tone and playing it with the sound command

dur = 1;                    % duration of tone in seconds
Fs = 44100;                 % sampling rate per second
f = 500;                     % frequency of tone
t = (0:(1/Fs):dur);         % from 0 to dur with 1/Fs increments
x = 0.5*sin(2*pi*f*t);
sound(x,Fs);
% wavwrite(x,Fs, '440');