error: DYNARE: can’t open rbc4.mod
error: evaluating if command near line 84, column 1
error: called from dynare' in filec:\dynare\4.0.2\matlab\dynare.m’
I can’t understand how you get this. Are you sure that you have a file named “rbc4.mod” in your c:\dynare\4.0.2\models directory?
Three other remarks (which probably have no relation to your problem):
[ul] ] the line “pkg rebuild…” need not be typed every time you run Octave; only the first time/:m] ] You can just type “dynare rbc4.mod” instead of “dynare(‘rbc4.mod’)”; this is precisely the purpose of the “mark_as_command” statement/:m] ] You should not put your models in the same directory than the one where Dynare is installed, because if you uninstall Dynare 4.0.2 this will delete your model files. A better location is probably c:\dynare\models/:m][/ul]
error: DYNARE: can’t open rbc4.mod
error: evaluating if command near line 84, column 1
error: called from dynare' in filec:\dynare\4.0.2\matlab\dynare.m’
Please launch the “dir” command on the Octave prompt. This should list the files of the current working directory, as Octave sees them. This should indicate if “rbc4.mod” is seen by Octave or not.
One possibility is that your file is actually called “rbc4.mod.mod” (because of Windows hiding extensions by default, which confuses some people).