MATLAB: Problem with varbacktest/runtests in Matlab_R20017a

MATLAB: Problem with varbacktest/runtests in Matlab_R20017a

runtestsvarbacktest

I am trying to run an example from doc varbacktest, in particular the following code:
load VaRBacktestData
vbt = varbacktest(EquityIndex,Normal95);
runtests(vbt)
It breaks at the last line with the following error message:
Error using varbacktest/runtests (line 114) Too many input arguments.
What am i doing wrong? Thanks in advance!

Best Answer

  • More than likely you’re shadowing a function that runtests calls.
    Try turning on dbstop if error so the debugger will stop when the error occurs and you can see what function it is.
  • Add a Comment

    Your email address will not be published. Required fields are marked *