diff options
author | Abhinav Dronamraju | 2017-11-24 19:19:30 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-11-24 19:19:30 +0530 |
commit | 11f08cc395ea1b0de77af3dbb87a985418fc3800 (patch) | |
tree | 0991c8646700449cd366089055f9e6c671253364 /macros/hilbert1.sci | |
parent | e3a1c5e215a7e9a074a3e6fa7171b2092c8c5cc0 (diff) | |
download | FOSSEE-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/hilbert1.sci')
-rw-r--r-- | macros/hilbert1.sci | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/hilbert1.sci b/macros/hilbert1.sci index 864067f..1c0fe0e 100644 --- a/macros/hilbert1.sci +++ b/macros/hilbert1.sci @@ -1,4 +1,26 @@ function h= hilbert1(f, varargin) +//Analytic extension of real valued signal. +//Calling Sequence +// h= hilbert1(f) +// h= hilbert1(f,N) +// h= hilbert1(f,N,dim) +//Parameters +//f: real or complex valued scalar or vector +//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. +// +//real (h) contains the original signal f. imag (h) contains the Hilbert transform of f. +// +//hilbert1 (f, N) does the same using a length N Hilbert transform. The result will also have length N. +// +//hilbert1 (f, [], dim) or hilbert1 (f, N, dim) does the same along dimension dim. +//Examples +//## notice that the imaginary signal is phase-shifted 90 degrees +// t=linspace(0,10,256); +// z = hilbert1(sin(2*pi*0.5*t)); +// grid on; plot(t,real(z),';real;',t,imag(z),';imag;'); funcprot(0); rhs= argn(2); |