From 590c0985f8ca88a98b23da7edfc189da3f0767fe Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx,de>
Date: Mon, 13 Oct 2014 20:10:57 +0200
Subject: [PATCH] Add missing run index to looped variable in resol.m

---
 matlab/resol.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/resol.m b/matlab/resol.m
index cae7a1a49c..5e7c024d7b 100644
--- a/matlab/resol.m
+++ b/matlab/resol.m
@@ -116,7 +116,7 @@ if options.loglinear
         fprintf('You are attempting to simulate/estimate a loglinear approximation of a model, but\n')
         fprintf('the steady state level of the following variables is not strictly positive:\n')
         for var_iter=1:length(idx)
-            fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(var_iter,:)), num2str(dr.ys(idx)))
+            fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(var_iter,:)), num2str(dr.ys(idx(var_iter))))
         end
         if isestimation()
             fprintf('You should check that the priors and/or bounds over the deep parameters are such')
-- 
GitLab