out = sig_tone(f, dur, fs); out = sig_tone(f, dur, fs, ph);
f | Frequency (in Hz). |
dur | Duration (in seconds). |
fs | Sampling frequency (in Hz). |
ph | Optional starting phase of the sine (in degrees). Default: 0 degrees, i.e., a sine. |
out | Output signal, i.e., the tone. |
sig_tone(..) generates a tone consisting of a single sinusoid with the frequency f, duration dur, and starting phase ph.