epoh 发表于 2012-12-2 17:02 
odbc_settings_excel.pdf
??? Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Variable 'indep_nS' is used as a command function.
Error in ==> MS_Regress_Fit_tvtp at 67
[param]=fmincon(@(param)MS_Regress_Lik_tvtp(dep,indep_nS,indep_S,px,param,k,S,advOpt,dispOut),param0, ...
Error in ==> MS_VAR_Fit_tvtp at 68
[Spec_Output]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt); % Estimating the model
Error in ==> Example_MS_Regress_Fit_MSVAR_tvtp at 21
[Spec_Out]=MS_VAR_Fit_tvtp(dep,nLag,px,k,doIntercept,advOpt);
??? Error using ==> checkInputs_tvtp
So far, in the multivariate version (size(dep,2)>1), the package only handles the multivariate normal distribution. Please set advOpt.distrib='Normal'.
Error in ==> checkInputs_tvtp at 129
error('So far, in the multivariate version (size(dep,2)>1), the package only handles the multivariate normal distribution. Please set advOpt.distrib=''Normal''.')
Error in ==> MS_Regress_Fit_tvtp at 33
checkInputs_tvtp(); % checking if inputs variables are OK
Error in ==> Example_MS_Regress_Fit_MultiVar_tvtp at 28
[Spec_Out]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt); % Estimating the model
??? Variable 'indep_nS' is used as a command function.
Error in ==> MS_Regress_Fit_tvtp>@(param)MS_Regress_Lik_tvtp(dep,indep_nS,indep_S,px,param,k,S,advOpt,dispOut) at 81
[param,fval,exitflag,output]=fminunc(@(param)MS_Regress_Lik_tvtp(dep,indep_nS,indep_S,px,param,k,S,advOpt,dispOut),param0,options);
Error in ==> fminunc at 182
f = feval(funfcn{3},x,varargin{:});
Error in ==> MS_Regress_Fit_tvtp at 81
[param,fval,exitflag,output]=fminunc(@(param)MS_Regress_Lik_tvtp(dep,indep_nS,indep_S,px,param,k,S,advOpt,dispOut),param0,options);
Error in ==> Example_MS_Regress_Fit_t_Dist_tvtp at 37
[Spec_Out]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt); % Estimating the model
??? Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Variable 'indep_nS' is used as a command function.
Error in ==> MS_Regress_Fit_tvtp at 67
[param]=fmincon(@(param)MS_Regress_Lik_tvtp(dep,indep_nS,indep_S,px,param,k,S,advOpt,dispOut),param0, ...
Error in ==> Example_MS_Regress_Fit_tvtp at 37
[Spec_Out]=MS_Regress_Fit_tvtp(dep,indep,px,k,S,advOpt); % Estimating the model
>>
epoh老师,您好!
附件 中的程序和数据为什么运行会出现以上问题?如何解决?