Not enough input arguments.

5 次查看(过去 30 天)
economics student
economics student 2021-1-23
编辑: Stephen23 2021-1-24
Hi, i am having issue to run a VAR model were the following error is flagged:
>> VARmodel
Not enough input arguments.
Error in VARmodel (line 33)
[nobs, nvar] = size(ENDO);
Should I have to quote nobs and nvar?
  5 个评论
economics student
economics student 2021-1-23
Ok. thanks.
I did not define them as i thought that these would adjust depending on the data imported.
Stephen23
Stephen23 2021-1-24
编辑:Stephen23 2021-1-24
Do NOT use eval for trivial field access. Instead of this ugly, slow, inefficient, complex code:
eval( ['VAR.' aux '.beta = OLSout.beta;'] );
use this simpler, neater, more efficient, and much easier to debug code:
VAR.(aux).beta = OLSout.beta;

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by