MATLAB: Difference between normcdf and 1-erfc

MATLABnormcdf versus erfc

does normcdf=1-erfc
Thank you,

Best Answer

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')