difference between normcdf and 1-erfc

2 次查看(过去 30 天)
does normcdf=1-erfc
Thank you,

采纳的回答

the cyclist
the cyclist 2014-7-6
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
Thank you! After further research, looks like normcdf = 0.5*erfc(-x/(sqrt(2))

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by