Hi,

Thanks for this wonderful toolbox!

I am trying to solve the inhomogeneous wave equation with the source term $f(t)\delta(x-x_0)$ using the k-Wave toolbox, i.e.

$$ (\partial_t^2-\laplace)u=f(t)\delta(x-x_0).$$

However, the solution seems wrong when I set source.p=f(t). The manual says that $f(t)=2/(c_0 N dx) \partial_t source.p$, but it does not work when I change the source.p using the equality. How should I set the source.p to get the expected solution? Any suggestion is appreciated!

Thanks,

Jiwei