sum of dirac delta function
11 views (last 30 days)
I am trying to write a single sum of many dirac terms like dirac(x-1)+dirac(x-4)+dirac(x-7)+dirac(x-10) and so on. There is an increment of 3 in each sucessive term and it can go quite far like 200. Can we write a code that just sums all dirac terms like a series?
syms x t
y(x) = (dirac(x-1) + dirac(x-4)+................;
z = y(x)* exp(-4*(t-x));