Not enough input arguments.

5 Ansichten (letzte 30 Tage)
economics student
economics student am 23 Jan. 2021
Bearbeitet: Stephen23 am 24 Jan. 2021
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 Kommentare
economics student
economics student am 23 Jan. 2021
Ok. thanks.
I did not define them as i thought that these would adjust depending on the data imported.
Stephen23
Stephen23 am 24 Jan. 2021
Bearbeitet: Stephen23 am 24 Jan. 2021
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;

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by