Page 1 of 1

Cooley Example error

PostPosted: Fri Jul 24, 2009 4:10 am
by gabriel
Hello, all!
I have replaced the last line in the RBC_Cooley.mod example to:

Code: Select all
table('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),M_.endo_names(1:6,:),statistic1,10,8,4);


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

Code: Select all
??? 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) ;


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%.

Re: Cooley Example error

PostPosted: Fri Jul 31, 2009 7:46 pm
by gbel
'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.

Re: Cooley Example error

PostPosted: Tue Aug 25, 2009 1:29 pm
by SébastienVillemot
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,