Member of the advanced class.
y = betainc(x, a, b)
Computes the incomplete beta function of the input elements.
| Name | Description |
| x | Specifies a matrix or a scalar number. All elements in x must have values between 0 and 1, inclusive. |
| a | Specifies a matrix or a scalar number. If x is a matrix, a is a matrix of the same size as x. |
| b | Specifies a matrix or a scalar number. If x is a matrix, b is a matrix of the same size as x. |
| Name | Description |
| y | Returns the incomplete beta function. y is a matrix of the same size as x, a, and b. |
When the input elements are scalar, LabVIEW computes beta(x, a, b) using the following equation: y = (1/beta(a, b))*integral((t^(a-1))*((1-t)^(b-1)), t, 0, x).
X = 0:0.01:0.9;
A = 0.5;
B = 0.7;
Y = betainc(X, A, B);
plot(X, Y)