Page 1 of 1

I can´t open mod files with dynare on octave

PostPosted: Fri Nov 27, 2009 7:44 pm
by marcio_fr
Hi all,


I´m a new user of dynare and Octave. I´ve instaled the dynare v4.0.4 and octave 3.2.2, but I cannot run the .mod files. I typed the folling commands on octave:

addpath c:\dynare\4.0.4\matlab
mark_as_command dynare
dynare rbc.mod

And always give the same thing

"error: DYNARE: can´t open rbc.mod
error: called from
error: c:\dynare\4.0.4\matlab\dynare.m at line 85, column 3"

I hope you can help me, Márcio.

Re: I can´t open mod files with dynare on octave

PostPosted: Sat Nov 28, 2009 9:21 am
by pakocica
Dear Márcio,

are you sure you are in the right "Current directory" when you call the command dynare rbc.mod ?

Pavel

Re: I can´t open mod files with dynare on octave

PostPosted: Fri Dec 04, 2009 1:10 pm
by marcio_fr
Thank you for your help. Nevertheless, I have other dougth, after run the algoritm the octave shows the fowlling error mesenge: "structure has no member maximum_lag". Could you give-me some advise?

Best, Márcio.

Re: I can´t open mod files with dynare on octave

PostPosted: Fri Dec 04, 2009 5:56 pm
by pakocica
Dear Marcio,

can you show me PrintScreen shot? Either attach it here or send me by email: pakopublic (at) gmail (dot) com.

Regards,
Pavel

Re: I can´t open mod files with dynare on octave

PostPosted: Sat Dec 05, 2009 7:45 pm
by pakocica
After Mario sent me his code we found out that the problem was caused by the command "clear all" in the beginning of the filename.mod. This command was put into the middle of the filename.m file. So some of the declared variables ware erased.

Pavel