I’m trying to run Thomas Winberry’s code for solving Krusell-Smith (see attached). When I run the dynamics.m file, when Dynare is running I get an error that says:
Error using eval
Must be a text scalar.
Error in firstOrderDynamics_polynomials.driver (line 3386)
M_.params(iParam) = eval(['economicParameters.' parameterName]);
Error in dynare (line 281)
evalin('base',[fname '.driver']);
Error in dynamics (line 74)
dynare firstOrderDynamics_polynomials
I assume this is a Dynare error because the firstOrderDynamics_polynomials.driver is m code generated by Matlab. I have run it on Dynare 5.0 and 5.1 on matlab 2020b. How should I fix this? Thanks for your help,
@einheria As pointed out above, the reason is that Dynare moved from strings to cell arrays in version 4.6. That’s why I provided an updated version of the toolkit to account for that.
Bravo! It seems like I missed something important. Cos I just downloaded the latest version and encounter same problem, I thought your update wont fix it.
Thank you so much! I dont need to manully fix it now