Deriving dirac delta function using Matlab symbolic toolbox

前端 未结 2 1804
半阙折子戏
半阙折子戏 2020-12-21 13:13

i\'m new in matlab. I didn\'t understand how to derive a dirac delta function and then shift it using symbolic toolbox.

syms t
x = dirac(t)
<
2条回答
  •  余生分开走
    2020-12-21 13:59

    First, I've not met ezplot before; I had to read up on it. For things that are functionals like your x, it's handy, but you still have to realize it's exactly giving you what it promises: A plot.

    If you had the job of plotting the dirac delta function, how would you go about doing it correctly? You can't. You must find a convention of annotating your plot with the info that there is a single, isolated, infinite point in your plot.

    Plotting something with a line plot hence is unsuitable for anything but smooth functions (that's a well-defined term). Dirac Delta definitely isn't amongst the class of functions that are smooth. You would typically use a vertical line or something to denote the point where your functional is not 0.

提交回复
热议问题