Index: hilbert.m =================================================================== --- hilbert.m (revision 5932) +++ hilbert.m (working copy) @@ -45,7 +45,8 @@ end; if ~isreal(f) - error('HILBERT only works for real-valued signals.'); + warning ('HILBERT: ignoring imaginary part of signal'); + f = real (f); end; if nargin<3