From 1e32902e38cd4cedd5dde423aa1998a97ed65dc5 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Mon, 2 Sep 2024 11:52:00 +0200
Subject: [PATCH] NK_baseline: prevent naming conflict errors

---
 examples/NK_baseline_steadystate.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/NK_baseline_steadystate.m b/examples/NK_baseline_steadystate.m
index 1d17e27a6e..eb2fdbb93d 100644
--- a/examples/NK_baseline_steadystate.m
+++ b/examples/NK_baseline_steadystate.m
@@ -32,6 +32,10 @@ function [ys,params,check] = NK_baseline_steadystate(ys,exo,M_,options_)
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
+% make parameter explicitly known to Matlab to avoid naming conflicts; actual value is read out
+% in next eval-loop 
+delta=0;
+
 % read out parameters to access them with their name
 NumberOfParameters = M_.param_nbr;
 for ii = 1:NumberOfParameters
-- 
GitLab