function xhat = cceps(x)
%CCEPS	Complex cepstrum.
%	CCEPS(x) returns the complex cepstrum of the sequence x.
%	See also RCEPS, HILBERT, and FFT.

%	L. Shure 6-9-88
%	Copyright (c) 1988 by the MathWorks, Inc.

%	References: 
%	  [1] A.V. Oppenheim and R.W. Schafer, Digital Signal 
%	      Processing, Prentice-Hall, 1975.
%	  [2] Programs for Digital Signal Processing, IEEE Press,
%	      John Wiley & Sons, 1979, algorithm 7.1.

h = fft(x);
logh = log(abs(h))+sqrt(-1)*rcunwrap(angle(h));
xhat = real(ifft(logh));
