why i receive Nan for integral -inf to -inf ?
古いコメントを表示
for example:
if true
integral(@(x)exp(-(x.^2)/2),-inf,-inf)
end
採用された回答
その他の回答 (1 件)
Steven Lord
2017 年 7 月 21 日
0 投票
For computing that integral, you probably want to use the erf and/or erfc functions.
カテゴリ
ヘルプ センター および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!