summaryrefslogtreecommitdiff
path: root/macros/sinewave.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-27 11:14:24 +0530
committerGitHub2017-11-27 11:14:24 +0530
commit25a88252ee49c73acb18232f6e916d7742a1af80 (patch)
tree9161ea9a7940e36a21f0855a7805e24f7b002d8a /macros/sinewave.sci
parente9ab4b0b52db51be30f4ac3d07673c20b48da13c (diff)
parentff8b1285a880cc28c68d8b224b20b8ccff8e5422 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.gz
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.bz2
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.zip
Merge pull request #5 from abhinavdronamraju/master
Help files created and Updated Readme.md
Diffstat (limited to 'macros/sinewave.sci')
-rw-r--r--macros/sinewave.sci13
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)