Second derivative of Gaussian function

I would like to be able to get the second derivative of the Gaussian function which can be described as
Gaussian=yo+(A*Const/w*(exp(-log(2)*((X-c)./w).^2)); where Const=sqrt(log(2)/pi)
Can I use the differentiate function for this?
Thanks in advance.

回答 (1 件)

Andrew Newell
Andrew Newell 2011 年 5 月 10 日

0 投票

Sure:
syms yo A w X c
Gaussian=yo+A/w*exp(-((X-c)/w)^2);
diff(Gaussian,w,2)
I have cleaned up some redundancy in your expression.

1 件のコメント

Meow
Meow 2021 年 3 月 26 日
Should the 3rd line be diff(Gaussian,X,2)?

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

カテゴリ

質問済み:

2011 年 5 月 10 日

コメント済み:

2021 年 3 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by