diff options
Diffstat (limited to 'macros/sinetone.sci')
-rw-r--r-- | macros/sinetone.sci | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/macros/sinetone.sci b/macros/sinetone.sci index 006a2e0..407fa45 100644 --- a/macros/sinetone.sci +++ b/macros/sinetone.sci @@ -1,5 +1,17 @@ function y= sinetone(x, varargin) - +//Return a sinetone of the input +//Calling Sequence +//y= sinetone(FREQ) +//y= sinetone(FREQ, RATE) +//y= sinetone(FREQ, RATE, SEC) +//y= sinetone(FREQ, RATE, SEC, AMPL) +//Parameters +//FREQ: frequency of sinetone +//RATE: Sampling rate +//SEC: Length in seconds +//AMPL: Amplitude +//Description +//Return a sinetone of frequency FREQ with a length of SEC seconds atsampling rate RATE and with amplitude AMPL.The arguments FREQ and AMPL may be vectors of common size.The defaults are RATE = 8000, SEC = 1, and AMPL = 64. funcprot(0); rhs= argn(2); if(rhs<1 | rhs>4) |