# Solved: Use of DiracComb to sample a function

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?

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

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}]