How to plot dirac n-th derivation ?

3 ビュー (過去 30 日間)
joejonson
joejonson 2015 年 8 月 31 日
コメント済み: Star Strider 2015 年 9 月 1 日
I dont know how to plot this function which contains first and second derivation of dirac.
This is how i tried to solve it
Y= 80.624*t + 731939*dirac(t) + 6.373*(t^2) + 4663650*dirac(t,1) + 159*dirac(t,2) + 124126*(t^3);
ezplot(Y ,[0 1])
But Matlab send me:
Error using sym/dirac
Too many input arguments
Can someone please help. Thanks

採用された回答

Star Strider
Star Strider 2015 年 8 月 31 日
You have the arguments to dirac reversed.
From the documentation:
  • dirac(n,x) represents the n-th derivative of the Dirac delta function at x.
  36 件のコメント
joejonson
joejonson 2015 年 9 月 1 日
I am very grateful to both of you, Star Strider and Walter, for your time and all you have done to help me.! I appreciate it!
Thanks you again
Star Strider
Star Strider 2015 年 9 月 1 日
My (our) pleasure!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by