summaryrefslogtreecommitdiff
path: root/macros/cmorwavf.sci
diff options
context:
space:
mode:
authorshamikam2017-11-07 15:59:48 +0530
committershamikam2017-11-07 15:59:48 +0530
commitc0c0582462720ed597b00e116506570577614e89 (patch)
tree31dedd23698e5357b19c810b7d7a8464100ef44a /macros/cmorwavf.sci
downloadFOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.gz
FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.tar.bz2
FOSSEE-Signal-Processing-Toolbox-c0c0582462720ed597b00e116506570577614e89.zip
initial commit
Diffstat (limited to 'macros/cmorwavf.sci')
-rw-r--r--macros/cmorwavf.sci26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/cmorwavf.sci b/macros/cmorwavf.sci
new file mode 100644
index 0000000..6c20fc5
--- /dev/null
+++ b/macros/cmorwavf.sci
@@ -0,0 +1,26 @@
+function [psi,x]=cmorwavf(lb,ub,n,fb,fc)
+funcprot(0);
+
+// Finds the Complex Morlet Wavelet
+// Calling Sequence
+// [psi,x]=cmorwavf(lb,ub,n,fb,fc)
+// Parameters
+// lb: Real or complex valued vector or matrix
+// ub: Real or complex valued vector or matrix
+// n: Real scalar strictly positive integer
+// fb: Real or complex scalar value
+// fc: Real or complex scalar value
+// Description
+// This is an Octave function.
+// This function returns the value of the Complex Morlet Waveform defined by a positive bandwidth parameter FB, a wavelet center frequency FC on an N point regular grid for the interval [LB,UB].
+// Examples
+// [a,b]=cmorwavf(1,2,1,3,4)
+// b=2
+// a=[0.0858628 -1.682D-16i]
+
+rhs=argn(2);
+if(rhs~=5) then
+ error ("Wrong number of input arguments.")
+end
+[psi,x]=callOctave("cmorwavf",lb,ub,n,fb,fc)
+endfunction