From 3e8d41368e74c654adaf051d5c85d0d7b2f276eb Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Thu, 6 Nov 2014 15:19:52 +0100 Subject: [PATCH] change dmmgraphs into function for use with dynare --- matlab/dmmgraphs.m | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/matlab/dmmgraphs.m b/matlab/dmmgraphs.m index a0e69d7..f208a94 100644 --- a/matlab/dmmgraphs.m +++ b/matlab/dmmgraphs.m @@ -1,3 +1,4 @@ +function dmmgraphs(path, file, dataset) % ------------------------------------------------------------------------ % DMMgraphs read DMM output and makes graphs of model parameters and unobsevables % @@ -20,15 +21,9 @@ % along with DMM. If not, see <http://www.gnu.org/licenses/>. % -------------------------------------------------------------------------- - - -% ---------- to be set by the user --------------------------------------- -path = 'h:\arossi\dmm\nile\'; % location of the .nml file e.g. nile.nml -file = 'nile'; % name of the nml file - -freq = 1; % 1 annual, 4 quarterly, 12 monthly -startyear = 1985; -startper = 1; +freq = dataset.freq; +startyear = dataset.dates(1).time(1); +startper = dataset.dates(1).time(2); space = 8; % spacing for the tme labels NHIST = 200; % to compute percentiles % ------------------------------------------------------------------------- -- GitLab