summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
Diffstat (limited to 'macros')
-rw-r--r--macros/hamming.sci10
-rw-r--r--macros/hanning.sci11
-rw-r--r--macros/hilbert1.sci2
-rw-r--r--macros/libbin6318 -> 6552 bytes
-rw-r--r--macros/names2
5 files changed, 23 insertions, 2 deletions
diff --git a/macros/hamming.sci b/macros/hamming.sci
index 6fa9a12..49a970f 100644
--- a/macros/hamming.sci
+++ b/macros/hamming.sci
@@ -1,4 +1,14 @@
function y = hamming(m, varargin)
+//Return the filter coefficients of a Hamming window of length M
+//Calling Sequence
+//hamming (M)
+//hamming (M, "periodic")
+//hamming (M, "symmetric")
+//Parameters
+//M: real scalar, which will be the length of hamming window
+//Description
+//Return the filter coefficients of a Hamming window of length M.
+//If the optional argument "periodic" is given, the periodic form of the window is returned. This is equivalent to the window of length M+1 with the last coefficient removed. The optional argument "symmetric" is equivalent to not specifying a second argument.
funcprot(0);
rhs= argn(2);
if(rhs <1 | rhs>2)
diff --git a/macros/hanning.sci b/macros/hanning.sci
index d90faf2..60ca783 100644
--- a/macros/hanning.sci
+++ b/macros/hanning.sci
@@ -1,5 +1,14 @@
function y = hanning(m, varargin)
-
+//Return the filter coefficients of a Hanning window of length M
+//Calling Sequence
+//hanning (M)
+//hanning (M, "periodic")
+//hanning (M, "symmetric")
+//Parameters
+//M: real scalar, which will be the length of hanning window
+//Description
+//Return the filter coefficients of a Hanning window of length M.
+//If the optional argument "periodic" is given, the periodic form of the window is returned. This is equivalent to the window of length M+1 with the last coefficient removed. The optional argument "symmetric" is equivalent to not specifying a second argument.
funcprot(0);
rhs= argn(2);
diff --git a/macros/hilbert1.sci b/macros/hilbert1.sci
index 1c0fe0e..fbcb136 100644
--- a/macros/hilbert1.sci
+++ b/macros/hilbert1.sci
@@ -9,7 +9,7 @@ function h= hilbert1(f, varargin)
//N: The result will have length N
//dim : It analyses the input in this dimension
//Description
-//h = hilbert (f) computes the extension of the real valued signal f to an analytic signal. If f is a matrix, the transformation is applied to each column. For N-D arrays, the transformation is applied to the first non-singleton dimension.
+//h = hilbert1 (f) computes the extension of the real valued signal f to an analytic signal. If f is a matrix, the transformation is applied to each column. For N-D arrays, the transformation is applied to the first non-singleton dimension.
//
//real (h) contains the original signal f. imag (h) contains the Hilbert transform of f.
//
diff --git a/macros/lib b/macros/lib
index d265058..643f8e5 100644
--- a/macros/lib
+++ b/macros/lib
Binary files differ
diff --git a/macros/names b/macros/names
index c6a8d88..af57307 100644
--- a/macros/names
+++ b/macros/names
@@ -65,6 +65,7 @@ fft2
fftconv
fftfilt
fftn
+fftshift1
fht
filter1
filter2
@@ -102,6 +103,7 @@ idct2
idst1
ifft
ifft2
+ifftn
ifftshift1
ifht
ifwht