From c44047648a928f9c46a84578e421e1ad28aedf27 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 12 Sep 2024 11:30:53 +0200
Subject: [PATCH] draw_prior_density.m: cosmetic changes

---
 matlab/estimation/draw_prior_density.m | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/matlab/estimation/draw_prior_density.m b/matlab/estimation/draw_prior_density.m
index 348231a225..f835a1a71d 100644
--- a/matlab/estimation/draw_prior_density.m
+++ b/matlab/estimation/draw_prior_density.m
@@ -86,10 +86,9 @@ end
 if pshape(indx) ~= 5
     [~,k1] = max(dens);
     if k1 == 1 || k1 == length(dens)
-        k = find(dens > 10);
-        dens(k) = NaN;
-        end
+        dens(dens > 10) = NaN;
     end
+end
 binf = abscissa(1);
 bsup = abscissa(end);
 x = abscissa;
-- 
GitLab