From 6c4ef22ed93d39fd4e6dafbf69a3a46c201b3084 Mon Sep 17 00:00:00 2001 From: Robert <52195853+robdahn@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:00:46 +0200 Subject: [PATCH] Corrected bug. Added missing variable. --- cat_vol_sanlm.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cat_vol_sanlm.m b/cat_vol_sanlm.m index 4a980868..a249429b 100644 --- a/cat_vol_sanlm.m +++ b/cat_vol_sanlm.m @@ -371,6 +371,8 @@ clear srcRS srcr srcR; src = src / 2; end + else + NCstrr1 = 0; NCstrr2 = 0; end NCstrr = mean([NCstrr1 NCstrr2]); % or sum() / 2 ;