erfc

erfc(X) returns complementary error function (ie 1-erf(X)) for each element of X.

Examples

> erf(0.2)#

 0.222703

> erfc(0.2)#

 0.777297
 
> x = -2:0.1:2

[x:1x41 double]

> overlay({plot(x, erf(x), struct('show', false)), plot(x, erfc(x), struct('show', false, 'dashArray', '6 4'))})

[ans:1x1 struct]
 

Resources

See also

erf | erfcinv | erfcx | erfinv