Cooley Example error

Hello, all!
I have replaced the last line in the RBC_Cooley.mod example to:

to avoid the lgy_ issue but now when I run the example I get another error message:

[code]??? Undefined function or method ‘table’ for input arguments of type ‘char’.

Error in ==> rbc_cooley at 130
table(‘Relative standard deviations in %’,strvcat(‘VARIABLE’,‘REL. S.D.’),M_.endo_names(1:6,:),statistic1,10,8,4);

Error in ==> dynare at 102
evalin(‘base’,fname) ;[/code]

A search for “evalin” on the forum returns no results.

Can you please help me troubleshoot this? [Using 4.0.4 with Matlab R2008a/7.6.0]
I have just started looking into Dynare and I’m trying to get the examples to work 100%.

‘evalin’ is a Matlab function. It just says ‘table’ it can’t find ‘table’. Maybe it’s not on your path. Otherwise I don’t know.

Hi,

The “table” function has been renamed to “dyntable” in Dynare 4.0.4. This was necessary because this created a name conflict with the “table” function shipped with Octave.

Replacing “table” by “dyntable” in your code should fix the problem.

Best,