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

Matlab

  1. t0=.15;                     % signal duration
  2. ts=0.001;                   % sampling interval
  3. % the message vector
  4. m=[ones(1,t0/(3*ts)),-2*ones(1,t0/(3*ts)),zeros(1,t0/(3*ts)+1)];
  5. m_hat=imag(hilbert(m));     % find the Hilbert transform