From b1933d58dd12b80b955655299f4ada3cd7cb4f77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ry=C3=BBk=29?=
 <stepan@adjemian.eu>
Date: Sun, 4 Jun 2023 08:07:28 +0200
Subject: [PATCH] Bug fix (undefined variable).

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

diff --git a/matlab/@dprior/dprior.m b/matlab/@dprior/dprior.m
index 94c38e9e8b..b56802586d 100644
--- a/matlab/@dprior/dprior.m
+++ b/matlab/@dprior/dprior.m
@@ -136,7 +136,7 @@ classdef dprior
                 while ~isempty(out_of_bound)
                     p(o.inverse_gamma_1_index(out_of_bound)) = ...
                         sqrt(1./gamrnd(o.p7(o.inverse_gamma_1_index(out_of_bound))/2, 2./o.p6(o.inverse_gamma_1_index(out_of_bound))))+o.p3(o.inverse_gamma_1_index(out_of_bound));
-                    out_of_bound = find( (p(o.inverse_gamma_1_index)>o.ub(inverse_gamma_1_index)) | (p(o.inverse_gamma_1_index)<o.lb(o.inverse_gamma_1_index)));
+                    out_of_bound = find( (p(o.inverse_gamma_1_index)>o.ub(o.inverse_gamma_1_index)) | (p(o.inverse_gamma_1_index)<o.lb(o.inverse_gamma_1_index)));
                 end
             end
             if o.inverse_gamma_2_draws
-- 
GitLab