How do you write this equation correctly in MATLAB?

1 vue (au cours des 30 derniers jours)
Andrew Emery
Andrew Emery le 27 Juin 2018

Réponse acceptée

Star Strider
Star Strider le 27 Juin 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.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by