Not enough input arguments.

조회 수: 16 (최근 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