Second derivative of Gaussian function

조회 수: 8 (최근 30일)
Sindhu Kaimal
Sindhu Kaimal 2011년 5월 10일
댓글: Meow 2021년 3월 26일
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일
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)?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by