Dear Prof. Pfeifer,
I am trying to run two files (cycle_moments.mod and second_moments) which calculate the second moments of model variables following an aggregate technology shock. However, when I try to do this, I get the following error message:
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Error in second_moments (line 52)
simulation_first(:,1) = oo_.dr.ghu*E(:,1);
Error in run (line 52)
second_moments;
Can you please advice me on how to overcome this issue? Please run the ‘run.m’ file to generate the error message. Running this file as it currently is will also run cycle_moments.mod and second_moments mentioned above.
Many thanks in advance.
Forum_non-singleton.zip (658.3 KB)