From 4e41ad728548845563f768b1af829e16cd0ab8a5 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 21 Oct 2011 12:52:52 +0200 Subject: [PATCH] MS-SBVAR: remove unused argument to plot_ms_irf.m --- matlab/ms-sbvar/ms_irf.m | 6 +++--- matlab/ms-sbvar/plot_ms_irf.m | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/matlab/ms-sbvar/ms_irf.m b/matlab/ms-sbvar/ms_irf.m index dcf89d3e3..ef8aa1028 100644 --- a/matlab/ms-sbvar/ms_irf.m +++ b/matlab/ms-sbvar/ms_irf.m @@ -95,8 +95,8 @@ if options_.ms.regimes irf_data = reshape_ascii_irf_data(M_.endo_nbr, percentiles_size, ... options_.ms.horizon, irf_data); save([irfdir filesep 'irf_state_' num2str(state_i-1)], 'irf_data'); - plot_ms_irf(M_,options_,irf_data,options_.varobs, ... - ['Impulse Responses, State ...' num2str(state_i)], varlist); + plot_ms_irf(M_, options_, irf_data, ... + ['Impulse Responses, State ' num2str(state_i)], varlist); end else if options_.ms.regime @@ -120,6 +120,6 @@ else irf_data = reshape_ascii_irf_data(M_.endo_nbr, percentiles_size, ... options_.ms.horizon, irf_data); save([irfdir filesep save_filename], 'irf_data'); - plot_ms_irf(M_, options_, irf_data, options_.varobs, irf_title, varlist); + plot_ms_irf(M_, options_, irf_data, irf_title, varlist); end end diff --git a/matlab/ms-sbvar/plot_ms_irf.m b/matlab/ms-sbvar/plot_ms_irf.m index 5d055a87a..51b92d88e 100644 --- a/matlab/ms-sbvar/plot_ms_irf.m +++ b/matlab/ms-sbvar/plot_ms_irf.m @@ -1,21 +1,18 @@ -function plot_ms_irf(M_, options_, irf, names, title_, varlist) -% function plot_ms_irf(M_, options_, irf, names, title_, varlist) +function plot_ms_irf(M_, options_, irf, title_, varlist) +% function plot_ms_irf(M_, options_, irf, title_, varlist) % plots the impulse responses from the output from a ms-sbvar % % INPUTS % M_ % irf should be in the form (percentile x horizon x (nvar x nvar)), if banded otherwise % ( horizon x (nvar x nvar) ) -% -% names: character list of the names of the variables -% % title: optional super title % % The element in position (k,i+j*nvars) of ir is the response of the ith % variable to the jth shock at horizon k. Horizon 0 is the contemporaneous % response. -% Copyright (C) 2011 Dynare Team +% Copyright (C) 2011-2012 Dynare Team % % This file is part of Dynare. %