From 4536ed1bd845cbeb6ba49f65ca746c1dbf259a86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 9 Nov 2018 18:05:53 +0100
Subject: [PATCH] Fix incompatibility with MATLAB R2007b

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

diff --git a/matlab/utilities/graphics/distinguishable_colors.m b/matlab/utilities/graphics/distinguishable_colors.m
index 027ad2cb64..146b9734bd 100644
--- a/matlab/utilities/graphics/distinguishable_colors.m
+++ b/matlab/utilities/graphics/distinguishable_colors.m
@@ -128,7 +128,7 @@ for i = 1:n_colors
     dX = bsxfun(@minus,lab,lastlab); % displacement of last from all colors on list
     dist2 = sum(dX.^2,2);  % square distance
     mindist2 = min(dist2,mindist2);  % dist2 to closest previously-chosen color
-    [~,index] = max(mindist2);  % find the entry farthest from all previously-chosen colors
+    [junk,index] = max(mindist2);  % find the entry farthest from all previously-chosen colors
     colors(i,:) = rgb(index,:);  % save for output
     lastlab = lab(index,:);  % prepare for next iteration
 end
-- 
GitLab