difference between normcdf and 1-erfc

 採用された回答

the cyclist
the cyclist 2014 年 7 月 6 日

2 投票

No. Here is some simple code that creates a plot that illustrates that those two functions are not equal:
x = -5 : 0.01 : 5;
y1 = normcdf(x);
y2 = 1-erfc(x);
figure
plot(x,y1,x,y2)
legend('normcdf','1-erfc')

その他の回答 (1 件)

Tri
Tri 2014 年 7 月 6 日

0 投票

Thank you! After further research, looks like normcdf = 0.5*erfc(-x/(sqrt(2))

カテゴリ

ヘルプ センター および File ExchangeSpecial Functions についてさらに検索

製品

質問済み:

Tri
2014 年 7 月 6 日

回答済み:

Tri
2014 年 7 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by