home *** CD-ROM | disk | FTP | other *** search
- function y = rcunwrap(x)
- %RCUNWRAP Phase unwrap utility used by CCEPS.
- % RCUNWRAP(X) unwraps the phase and removes phase corresponding
- % to integer lag. See also: UNWRAP, CCEPS.
-
- % L. Shure, 1988, revised 3-30-92, LS with help from PL.
- % Copyright (c) 1984-92 by the MathWorks, Inc.
-
- n = max(size(x));
- y = unwrap(x);
- nh = fix((n+1)/2);
- y(:) = y(:)' - pi*round(y(nh+1)/pi)*(0:(n-1))/nh;
-
-