function freq(f)

% function that takes in a frequency as an argument and plays numseconds
% of a sinusoid at that frequency

Fs = 44100;
numSeconds = 10;
samples = 0:1/Fs:numSeconds;
output = sin(2*pi*f*samples);
sound(output,Fs);