Search results
Calling erf for a number that is not a symbolic object invokes the MATLAB ® erf function. This function accepts real arguments only. If you want to compute the error function for a complex number, use sym to convert that number to a symbolic object, and then call erf for that symbolic object.
Y = erf(X) returns the value of the error function for each element of real array X. Y = erfc(X) computes the value of the complementary error function. Y = erfcx(X) computes the value of the scaled complementary error function.
Description. erfinv(x) returns the Inverse Error Function evaluated for each element of x. For inputs outside the interval [-1 1], erfinv returns NaN. example. Examples. collapse all. Find Inverse Error Function of Value. erfinv(0.25) ans = . 0.2253. For inputs outside [-1,1], erfinv returns NaN.
Syntax. erf(x) Description. erf(x) returns the Error Function evaluated for each element of x. example. Examples. collapse all. Find Error Function. Find the error function of a value. erf(0.76) ans = . 0.7175. Find the error function of the elements of a vector. V = [-0.5 0 1 0.72]; erf(V) ans = 1×4 . -0.5205 0 0.8427 0.6914.
Y = erf(X) returns the value of the error function for each element of real array X. Y = erfc(X) computes the value of the complementary error function. Y = erfcx(X) computes the value of the scaled complementary error function.
I have a quadrature integration technique that I wish to test by comparing to "truth" for integrating a Gaussian, so I'm using the erf function to generate the "truth" integral of the Gaussian. Wha...