2
$\begingroup$

I want to illustrate the ideal sampling of a signal by a dirac comb. Mathematically it is just the multiplication of the signal with a dirac comb. Therefore I'd like to use the DiracComb function. But I don't understand how to use the DiracComb to evaluate the sampled signal. Can someone give me an example?

$\endgroup$
5
  • $\begingroup$ What do you mean by evaluating a sampled signal? Is it something like this: Integrate[Exp[-t^2] DiracComb[t], {t, 0, 10}]? $\endgroup$
    – Michael E2
    Sep 27, 2016 at 14:07
  • $\begingroup$ Thanks, but I thought I can plot the signal some how. $\endgroup$
    – user43388
    Sep 27, 2016 at 15:17
  • $\begingroup$ Do you want to replace the infinite Dirac spike with a unit spike? Then maybe DiscretePlot[signal[t], {t, 0, 10}]? $\endgroup$
    – Michael E2
    Sep 27, 2016 at 15:32
  • $\begingroup$ Or Table[{t, signal[t]}, {t, 0, 10}]? (Visualize with ListPlot[].) $\endgroup$
    – Michael E2
    Sep 27, 2016 at 15:54
  • $\begingroup$ Related: (3506) $\endgroup$
    – Michael E2
    Sep 27, 2016 at 16:24

1 Answer 1

2
$\begingroup$

Thanks a lot for your help. If I use the DiscreteDelta and DiscretePlot I get what I want.

DiscretePlot[Sum[DiscreteDelta[t - n] Sin[t], {n, Infinity}], {t, 0, 10}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.