Error with RESHAPE

Dear Michel:
after running stoch-simul, I get this error.

??? Error using ==> reshape
To RESHAPE the number of elements must not change.

Error in ==> th_autocovariances at 158
Gamma_y{1} = reshape(imathp_col(1,:),nvar,nvar);

Could you help me with this?
Thanks a lot.
Federico

Dear Federico,

I need your *.mod file to replicate the problem. I will be traveling for two weeks, so I may take some time before answering you.

Kind regards

Michel

Dear Michel, I have been working on the code during the last days and discover what the problem was (I found a typo in the model). Thanks again for your help.