From 45fd0988a83956c7a7c494c37676e7090f9e8e3d Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Wed, 28 Nov 2012 21:38:21 +0100
Subject: [PATCH] fixing bug in error message for failed homotopy (steady)
 (cherry picked from commit 7c9ce9152d8f5cfd53d633f6e5f92e5610062459)

---
 matlab/steady.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/matlab/steady.m b/matlab/steady.m
index 54af1e7cd..24456b028 100644
--- a/matlab/steady.m
+++ b/matlab/steady.m
@@ -60,15 +60,15 @@ if info(1)
     disp('The last values for which a solution was found are:')
     for i=1:length(ip)
         disp(sprintf('%12s %12.6f',M_.param_names(hv(ip(i),2),:), ...
-                     M_.params(hv(ip(i)))))
+                     M_.params(hv(ip(i),2))))
     end
     for i=1:length(ix)
         disp(sprintf('%12s %12.6f',M_.exo_names(hv(ix(i),2),:), ...
-                     oo_.exo_steady_state(hv(ix(i)))))
+                     oo_.exo_steady_state(hv(ix(i),2))))
     end
     for i=1:length(ixd)
         disp(sprintf('%12s %12.6f',M_.exo_det_names(hv(ixd(i),2),:), ...
-                     oo_.exo_det_steady_state(hv(ixd(i)))))
+                     oo_.exo_det_steady_state(hv(ixd(i),2))))
     end
     
     if options_.homotopy_force_continue
-- 
GitLab