sr = 44100; % the sample rate in Hz
f = 1000; % the tone?s frequency (in Hz)
d = 1; % the tone?s duration
t = linspace(0, d, sr*d); % a time vector
tone = sin(2*pi*f*t); % the actual, final tone
sound(tone, sr);