| C Math Library Reference | ![]() |
C Prototype
mxArray *mlfBeta(mxArray *Z, mxArray *W); mxArray *mlfBetainc(mxArray *X, mxArray *Z, mxArray *W); mxArray *mlfBetaln(mxArray *Z, mxArray *W);
C Syntax
#include "matlab.h"
mxArray *Z, *W, *X; /* Required input argument(s) */
mxArray *B = NULL, *I = NULL, *L = NULL;/* Return value */
mlfAssign(&B, mlfBeta(Z,W));
mlfAssign(&I, mlfBetainc(X,Z,W));
mlfAssign(&L, mlfBetaln(Z,W));
MATLAB Syntax
B = beta(Z,W)
I = betainc(X,Z,W)
L = betaln(Z,W)
See Also
beta, betainc, betaln Calling ConventionsDescription
B = beta(Z,W)
computes the beta function for corresponding elements of the complex arrays Z and W. The arrays must be the same size (or either can be scalar).
I = betainc(X,Z,W)
computes the incomplete beta function. The elements of X must be in the closed interval 
L = betaln(Z,W)
computes the natural logarithm of the beta function, log(beta(Z,W)), without computing beta(Z,W). Since the beta function can range over very large or very small values, its logarithm is sometimes more useful.
| mlfBase2dec | mlfBicg | ![]() |