Darshan Hiranandani : Issue with Using Endogenous Variables for Calculations After Simulation in Dynare 6.1

Hi everyone,

I’m Darshan Hiranandani, recently updated my MATLAB to version 2021a and Dynare to version 6.1. In the past, I was able to run perfect foresight simulations and use the simulated results for endogenous variables directly in welfare calculations. However, after the update, I’ve encountered an issue when re-running my previous routines.

I’m now getting the error message:

“Unrecognized function or variable ‘T’.”

Additionally, I noticed that vectors for the endogenous variable paths are no longer being created, which seems to be the root cause of the error.

My question is: How can I create individual vectors for all endogenous variables after the simulation? I’m aware of the declaration order and the results in oo_->endo_simul, but is there a way to make calculations directly using the endogenous variables themselves?

Any suggestions or advice would be greatly appreciated. Thanks in advance!

Best,
Regards
Darshan Hiranandani

Please see