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.

Respuestas (1)

Andrew Newell
Andrew Newell el 10 de Mayo de 2011
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 comentario

Meow
Meow el 26 de Mzo. de 2021
Should the 3rd line be diff(Gaussian,X,2)?

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Mayo de 2011

Comentada:

el 26 de Mzo. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by