Member of the advanced class.
y = erf(x)
Computes the error function associated with a normal distribution.
| Name | Description |
| x | Specifies the upper limit for integration. x is a real scalar, vector, or matrix. |
| Name | Description |
| y | Returns the value of the integral of exp(-s^2)/(2*sqrt(pi)) in the interval [0, x]. |
% Compute the error function at 1.386:
Y = erf(1.386)
% Plot the error function:
X = 0:0.01:3;
Y = erf(X);
plot(X, Y)