%% Compute Incomplete Beta Function
% Compute the incomplete beta function corresponding to the elements of Z according to the parameters X and W.

format longG
X = 0.5;
Z = (1:10)';
W = 3;
I = betainc(X,Z,W)

% Copyright 2012 The MathWorks, Inc.