why i receive Nan for integral -inf to -inf ?
Afficher commentaires plus anciens
for example:
if true
integral(@(x)exp(-(x.^2)/2),-inf,-inf)
end
Réponse acceptée
Plus de réponses (1)
Steven Lord
le 21 Juil 2017
0 votes
For computing that integral, you probably want to use the erf and/or erfc functions.
Catégories
En savoir plus sur NaNs dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!