how to plot a function consisting of sum of dirac deltas?

6 visualizaciones (últimos 30 días)
Musab Labeeb
Musab Labeeb el 6 de Mayo de 2020
Editada: Musab Labeeb el 6 de Mayo de 2020
Hello,
Can anyone help me to plot x(t) = dirac(t+4)+dirac(t+2)+dirac(t)+dirac(t-2)+dirac(t-4). I'm trying to plot vertical lines on t=-4,-2,0,2,4. but it is giving a single vertical line with length -5 to 5 at t=0.

Respuestas (2)

Bjorn Gustavsson
Bjorn Gustavsson el 6 de Mayo de 2020
Have a look at stem, it does somewhat "representing Dirac'ses", maybe it is good enough?
HTH
  9 comentarios
Musab Labeeb
Musab Labeeb el 6 de Mayo de 2020
thank you very much
but bro im looking forward to use x(t) to plot it
Musab Labeeb
Musab Labeeb el 6 de Mayo de 2020
Editada: Musab Labeeb el 6 de Mayo de 2020
can you help me to plot this function. i try to find its slope and try to plot it but it become 0

Iniciar sesión para comentar.


Musab Labeeb
Musab Labeeb el 6 de Mayo de 2020
i want that type of graph

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by