How do you write this equation correctly in MATLAB?

1 visualización (últimos 30 días)
Andrew Emery
Andrew Emery el 27 de Jun. de 2018
Respondida: Star Strider el 27 de Jun. de 2018

Respuesta aceptada

Star Strider
Star Strider el 27 de Jun. de 2018
That is difficult to read. It appears to be this:
p = @(delta,sigma) (exp(-sigma./delta)./delta) .* (sigma >= 0);
It will default to being 0 for sigma < 0, so it is not necessary to specifically include that condition.
Call the ‘p’ anonymous function with the two arguments as you would any other function.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by