sisters 发表于 2014-2-9 17:31 
在 google 里直接搜索M程序。 http://www.wiley.com/legacy/wileychi/koopbayesian/supp/tdis_inv.m
我把这个M程序放进工具箱之后,还是运行不出来,不知道大侠有没有遇到过啊,这是怎么回事呢,十分感谢
[ kappa2 LL2] = fmincon('tcopulaCL',theta0,[],[],[],[],lower,upper,[],options,[u,v])
Warning: To use the default trust-region-reflective algorithm you must
supply the gradient in the objective function and set the GradObj option
to 'on'. FMINCON will use the active-set algorithm instead. For
information on applicable algorithms, see Choosing the Algorithm in the
documentation.
> In fmincon at 517
Warning: Your current settings will run a different algorithm
(interior-point) in a future release.
> In fmincon at 522
Undefined function 'beta_inv' for input arguments of type 'double'.
Error in tdis_inv (line 25)
x = beta_inv(p,1/2,a/2);
Error in tcopulaCL (line 33)
x = tdis_inv(data(:,1),nu);
Error in fmincon (line 640)
initVals.f = feval(funfcn{3},X,varargin{:});
Caused by:
Failure in initial user-supplied objective function evaluation.
FMINCON cannot continue.