- from matlab command line, type help normlike. This will show you what normlike expects for inputs. Pay attention to the explanation of the first parameter. It is the one giving you error.
- Put a breakpoint on the line that calls normlike. See if the first parameter is an array of two elements.
First input must be a vector with 2 elements.
4 ビュー (過去 30 日間)
古いコメントを表示
Dear All, I am cuzrrently running a code trying to estimate a DCC GARCH Model and am encountering the following error. How do I resolve thiss issue best?
Error using normlike (line 42)
First input must be a vector with 2 elements.
[parameters_dcc, ll, Ht]=dcc(data,[],1,1,1);
0 件のコメント
回答 (1 件)
Yongjian Feng
2021 年 7 月 16 日
Hello Tilman,
Is dcc a function you developed? The error message is about calling normlike, mostlikely inside function dcc. Two things you can do:
Thanks,
Yongjian
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Financial Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!