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

Matlab

  1. function u=dsb_mod(m,ts,fc)
  2. % u=dsb_mod(m,ts,fc)
  3. %DSB_MOD   takes signal m sampled at ts and carrier
  4. % freq. fc as input and returns the DSB modulated
  5. % signal. ts << 1/2fc. The modulated signal
  6. % is normalized to have half the message power.
  7. % The message signal starts at 0.
  8. t=[0:length(m)-1]*ts;
  9. u=m.*cos(2*pi*t);