You are on page 1of 1

function s=sinewave (f,d,sr); % sinewave of a given frequency, duration and sample rate); t= 0:1/sr:d; s=sin(2*pi*f*t); sound(s,sr);

You might also like