Not enough input arguments.

8 ビュー (過去 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 Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by