I try to work in Matlab with data of mixed frequency. When I try to use code as in http://www.unc.edu/~eghysels/papers/MIDAS_Usersguide_V1.0.pdf and it gives me an answer "Undefined function 'MIDAS_ADL'for input arguments of type 'cell'". What should I do? The problem also was with types: single and double.

回答 (1 件)

Roger Wohlwend
Roger Wohlwend 2014 年 6 月 16 日

0 投票

It seems that Matlab cannot not find your function. Type
path
in the command window and check if the folder that contains the MIDAS-function is part of the list. If it is not, add the folder to the search path.

7 件のコメント

Kristina
Kristina 2014 年 6 月 16 日
How to add the folder to the search path?
Roger Wohlwend
Roger Wohlwend 2014 年 6 月 16 日
Use the function addpath.
Kristina
Kristina 2014 年 6 月 16 日
I inserted addpath MIDAS_ADL, MIDAS, MixedFreqData, because they were in midas manual, but the program says: Warning: Name is nonexistent or not directly: MIDAS_ADL/MIDAS/MixesFreqData.
Roger Wohlwend
Roger Wohlwend 2014 年 6 月 16 日
Then the specified folders do not exist or Matlab cannot find them. Check the names.
Kristina
Kristina 2014 年 6 月 16 日
Thanks!
Julia Ferreira
Julia Ferreira 2020 年 6 月 19 日
Hi Kristina,
I am facing the same error as you did. Could you solve it ?
Julia Ferreira
Julia Ferreira 2020 年 6 月 20 日
I just found out what the problem was: in the paper the function's name is adlmidas. However if you check the package the name is different. It is MIDAS_ADL... so if you try to copy and paste from the paper it will never work. Perhaps the function's name chenged after the paper was published.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Get Started with MATLAB についてさらに検索

製品

質問済み:

2014 年 6 月 16 日

コメント済み:

2020 年 6 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by