Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@josevazquez
Created December 1, 2009 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josevazquez/246437 to your computer and use it in GitHub Desktop.
Save josevazquez/246437 to your computer and use it in GitHub Desktop.
function tone = toneGen(Fs=8192, freq=1, samples=8192)
tone = sin(freq*2*pi*(1:samples)/Fs);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment