Question: how does erf work in matlab?
Answer: The error function erf(X) is twice the integral of the Gaussian distribution with 0 mean and variance of . Y = erf(X) returns the value of the error function for each element of real array X . ... X = erfcinv(Y) returns the value of the inverse of the complementary error function for each element of Y .