why i receive Nan for integral -inf to -inf ?
Ältere Kommentare anzeigen
for example:
if true
integral(@(x)exp(-(x.^2)/2),-inf,-inf)
end
Akzeptierte Antwort
Weitere Antworten (1)
Steven Lord
am 21 Jul. 2017
0 Stimmen
For computing that integral, you probably want to use the erf and/or erfc functions.
Kategorien
Mehr zu NaNs finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!