No BSD License  

Highlights from
Digital Signal Processing Using MATLAB

Digital Signal Processing Using MATLAB

by

 

21 Aug 2002 (Updated )

Companion Software

circevod(x)
function [xec, xoc] = circevod(x)

% signal decomposition into circular-even and circular-odd parts

% --------------------------------------------------------------

% [xec, xoc] = circecod(x)

%

if any(imag(x) ~= 0)

      error('x is not a real sequence')

end

N = length(x); n = 0:(N-1);

xec = 0.5*(x + x(mod(-n,N)+1));

xoc = 0.5*(x - x(mod(-n,N)+1));

Contact us