Loweq.m
Upload User: loeagle
Upload Date: 2013-03-02
Package Size: 1236k
Code Size: 0k
Development Platform:

Matlab

  1. function xl=loweq(x,ts,f0)
  2. % xl=loweq(x,ts,f0)
  3. %LOWEQ Returns the lowpass equivalent of the signal x.
  4. % f0 is the center frequency. 
  5. % ts is the sampling interval.
  6. %
  7. t=[0:ts:ts*(length(x)-1)];
  8. z=hilbert(x);
  9. xl=z.*exp(-j*2*pi*f0*t);