epoh 发表于 2012-11-3 15:12 
抱歉!zhangtao兄,最近较忙,晚回了.
刚抽空看了下
MSVARlib-v2.0并没有你说的库函数(.lib)和source函数 ...
epoh老师,您好!
为什么附件 中的examples文件我运行总是提示以下错误,为什么?如何更正?
非常感谢!
另外,我还是没有明白.lib文件和.dll文件有什么区别和联系。
另外,编程中(例如java)中的多态是什么?我总是不明白。
Error in ==> Example_MS_Regress_Fit_using_constCoeff at 35
[Spec_Out]=MS_Regress_Fit(dep,indep,k,S,advOpt); % Estimating the model
??? Error using ==> m_Files\checkSize_constCoeff.m
The argument constcoeff.nS_Param{iEq} should be a vector with number of rows equal to the number of non switching parameters (indep matrix)
Error in ==> m_Files\checkSize_constCoeff.m at 24
error('The argument constcoeff.nS_Param{iEq} should be a vector with number of rows equal to the number of non switching parameters (indep matrix)')
Error in ==> m_Files\MS_Regress_Fit.m at 39
checkSize_constCoeff();
Error in ==> Example_MS_Regress_For at 20
[Spec_Out]=MS_Regress_Fit(dep,indep,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 ==> m_Files\MS_Regress_Fit.m at 85
[param]=fmincon(@(param)MS_Regress_Lik(dep,indep_nS,indep_S,param,k,S,advOpt,dispOut),param0, ...
Error in ==> Example_MS_Regress_Simul_and_Fit_2_States at 54
[Spec_Output]=MS_Regress_Fit(dep,indep,k,S,advOpt);
??? 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 ==> m_Files\MS_Regress_Fit.m at 85
[param]=fmincon(@(param)MS_Regress_Lik(dep,indep_nS,indep_S,param,k,S,advOpt,dispOut),param0, ...
Error in ==> Example_MS_Regress_Simul_and_Fit_3_States at 56
[Spec_Output]=MS_Regress_Fit(dep,indep,k,S,advOpt); % fit 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 ==> m_Files\MS_Regress_Fit.m at 85
[param]=fmincon(@(param)MS_Regress_Lik(dep,indep_nS,indep_S,param,k,S,advOpt,dispOut),param0, ...
Error in ==> Example_MS_Regress_Simul_Fit_2_States_Multivar at 65
[Spec_Out]=MS_Regress_Fit(dep,indep,k,S,advOpt); % Estimating the model
>>