From e9d3793891d5f501e3d1d74742d425384f9714cf Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 23 Mar 2009 09:30:59 +0000 Subject: [PATCH] 4.1: replacing 'message' by msg and initializing it git-svn-id: https://www.dynare.org/svn/dynare/trunk@2510 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/check_list_of_variables.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matlab/check_list_of_variables.m b/matlab/check_list_of_variables.m index 5377d0b28..bdc9914bf 100644 --- a/matlab/check_list_of_variables.m +++ b/matlab/check_list_of_variables.m @@ -31,19 +31,20 @@ function varlist = check_list_of_variables(options_, M_, varlist) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . + msg = 0; if options_.bvar_dsge && options_.bayesian_irf if ~isempty(varlist) for i=1:size(varlist,1) idx = strmatch(deblank(varlist(i,:)),options_.varobs,'exact'); if isempty(idx) disp([varlist(i,:) ' is not an observed variable!']); - message = 1; + msg = 1; end end if size(varlist,1)~=size(options_.varobs) - message = 1; + msg = 1; end - if message + if msg disp(' ') disp('Posterior IRFs will be computed for all observed variables.') disp(' ')