Error using eig Input matrix contains NaN or Inf.

6 次查看(过去 30 天)
I get the error shown below trying to run a DCC GARCH Model. How can I correct this? I tried to use abs(X) on each variable but it still does not work.
Thanks for all advice in advance.
Error using eig
Input matrix contains NaN or Inf.

回答(1 个)

Jan
Jan 2021-7-20
The error message is clear: The input of eig() cannot contain NaN or Inf.
Without seeing your code, the readers cannot guess, where the NaN or Inf are coming from and how you could avoid this problem. Why do you assume that abs(X) helps and what does "on each variable" mean?
  3 个评论
Tilman Zottl
Tilman Zottl 2021-7-20
编辑:Tilman Zottl 2021-7-20
Also I am ussing the dcc.m function of the MFE Toolbox
Jan
Jan 2021-7-20
Does r contain zeros? Then R must contain NaNs and eig() cannot work anymore.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Conditional Variance Models 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by