From a5fe22bd1cf585b4fa3fab4bde958f2f56e8bb8a Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Mon, 4 Apr 2022 22:50:16 +0200
Subject: [PATCH] resid: Fix display of name tags with Ramsey equations

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

diff --git a/matlab/resid.m b/matlab/resid.m
index a829616d94..22ed5c8dc2 100644
--- a/matlab/resid.m
+++ b/matlab/resid.m
@@ -88,7 +88,7 @@ if nargout == 0
             any_non_zero_residual = true;
         end
         if istag
-            tg = tags(cell2mat(tags(:,1)) == i,2:3); % all tags for equation i
+            tg = tags(cell2mat(tags(:,1)) == i+M_.ramsey_eq_nbr,2:3); % all tags for equation i
             ind = strmatch('name', cellstr( tg(:,1) ) );
         end
         if ~(non_zero && tmp == 0)
-- 
GitLab