diff options
Diffstat (limited to 'macros/sinewave.sci')
-rw-r--r-- | macros/sinewave.sci | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/macros/sinewave.sci b/macros/sinewave.sci index d5bdfa9..5263f35 100644 --- a/macros/sinewave.sci +++ b/macros/sinewave.sci @@ -1,5 +1,16 @@ function y= sinewave(x, varargin) - +//Return an M-element vector with I-th element given by 'sin(2* pi *(I+D-1)/N).' +//Calling Sequence +//y= sinewave(M) +//y= sinewave(M,N) +//y= sinewave(M,N,D) +//Parameters +//M: Input vector +//N: The default value for N is M +//D: The default value for D is 0 +//AMPL: Amplitude +//Description +//Return an M-element vector with I-th element given by 'sin(2* pi *(I+D-1)/N).' funcprot(0); rhs= argn(2); if(rhs<1 | rhs>3) |