From 7b0ebefc055b08de46ed033f1ad6a478d7a0e64f Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Mon, 25 Oct 2021 16:44:12 +0200
Subject: [PATCH] evaluate_steady_state.m: fix missed transition to cell array

(cherry picked from commit 8e063f0c33ae69879be337f1c5c501cc289a9f3f)
---
 matlab/evaluate_steady_state.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/evaluate_steady_state.m b/matlab/evaluate_steady_state.m
index 9ba91a2389..15e4e42497 100644
--- a/matlab/evaluate_steady_state.m
+++ b/matlab/evaluate_steady_state.m
@@ -273,7 +273,7 @@ elseif ~options.bytecode && ~options.block
                 [infrow,infcol]=find(isinf(jacob) | isnan(jacob));
                 fprintf('\nSTEADY:  The Jacobian contains Inf or NaN. The problem arises from: \n\n')
                 for ii=1:length(infrow)
-                    fprintf('STEADY:  Derivative of Equation %d with respect to Variable %s  (initial value of %s: %g) \n',infrow(ii),deblank(M.endo_names(infcol(ii),:)),deblank(M.endo_names(infcol(ii),:)),ys_init(infcol(ii)))
+                    fprintf('STEADY:  Derivative of Equation %d with respect to Variable %s  (initial value of %s: %g) \n',infrow(ii),M.endo_names{infcol(ii),:},M.endo_names{infcol(ii),:},ys_init(infcol(ii)))
                 end
                 fprintf('Check whether your model is truly linear. Put "resid(1);" before "steady;" to see the problematic equations.\n')
             end
-- 
GitLab