summaryrefslogtreecommitdiff
path: root/macros/sinetone.sci
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-11-24 19:19:30 +0530
committerAbhinav Dronamraju2017-11-24 19:19:30 +0530
commit11f08cc395ea1b0de77af3dbb87a985418fc3800 (patch)
tree0991c8646700449cd366089055f9e6c671253364 /macros/sinetone.sci
parente3a1c5e215a7e9a074a3e6fa7171b2092c8c5cc0 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.tar.gz
FOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.tar.bz2
FOSSEE-Signal-Processing-Toolbox-11f08cc395ea1b0de77af3dbb87a985418fc3800.zip
Created xml help files
Diffstat (limited to 'macros/sinetone.sci')
-rw-r--r--macros/sinetone.sci14
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)