diff --git a/matlab/ols/dyn_ols.m b/matlab/ols/dyn_ols.m index cae3f9a06..0ffab1510 100644 --- a/matlab/ols/dyn_ols.m +++ b/matlab/ols/dyn_ols.m @@ -43,7 +43,7 @@ global M_ oo_ options_ assert(nargin >= 1 && nargin <= 3, 'dyn_ols: takes between 1 and 3 arguments'); assert(isdseries(ds), 'dyn_ols: the first argument must be a dseries'); -jsonfile = [M_.fname '_original.json']; +jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']); if exist(jsonfile, 'file') ~= 2 error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile); end diff --git a/matlab/ols/olseqs.m b/matlab/ols/olseqs.m index c44d3dc60..c91b1368e 100644 --- a/matlab/ols/olseqs.m +++ b/matlab/ols/olseqs.m @@ -30,7 +30,7 @@ function olseqs(ds, varargin) global M_ oo_ -jsonfile = [M_.fname '_original.json']; +jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']); if exist(jsonfile, 'file') ~= 2 error('Could not find %s! Please use the json option (See the Dynare invocation section in the reference manual).', jsonfile); end diff --git a/matlab/ols/pooled_ols.m b/matlab/ols/pooled_ols.m index 383425028..c10c4d5b8 100644 --- a/matlab/ols/pooled_ols.m +++ b/matlab/ols/pooled_ols.m @@ -62,7 +62,7 @@ else end %% Read JSON -jsonfile = [M_.fname '_original.json']; +jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']); if exist(jsonfile, 'file') ~= 2 error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile); end diff --git a/matlab/ols/sur.m b/matlab/ols/sur.m index cb49866d4..88cdf6362 100644 --- a/matlab/ols/sur.m +++ b/matlab/ols/sur.m @@ -43,7 +43,7 @@ else end %% Read JSON -jsonfile = [M_.fname '_original.json']; +jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']; if exist(jsonfile, 'file') ~= 2 error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile); end diff --git a/matlab/plot_contributions.m b/matlab/plot_contributions.m index 98a185564..541608901 100644 --- a/matlab/plot_contributions.m +++ b/matlab/plot_contributions.m @@ -41,7 +41,7 @@ function plot_contributions(equationname, ds1, ds0) global M_ -jsonfile = [M_.fname '_original.json']; +jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']; if exist(jsonfile, 'file') ~= 2 error('Could not find %s! Please use the json option (See the Dynare invocation section in the reference manual).', jsonfile); end