From f6fa11bd6194579fc38db1984a7358bec62d27f2 Mon Sep 17 00:00:00 2001 From: Wirkungstreffer Date: Wed, 8 May 2024 23:47:43 +0200 Subject: [PATCH] modified pop_roi_connectplot.m and pop_roi_statsplot.m to include the maximal value of frequency. --- pop_roi_connectplot.m | 2 +- pop_roi_statsplot.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pop_roi_connectplot.m b/pop_roi_connectplot.m index 86a2279..d82c5fd 100644 --- a/pop_roi_connectplot.m +++ b/pop_roi_connectplot.m @@ -392,7 +392,7 @@ frq_inds = find(S.freqs == g.freqrange(1)); titleStr = sprintf('%1.1f Hz', g.freqrange(1)); else - frq_inds = find(S.freqs >= g.freqrange(1) & S.freqs < g.freqrange(2)); + frq_inds = find(S.freqs >= g.freqrange(1) & S.freqs <= g.freqrange(2)); titleStr = sprintf('%1.1f-%1.1f Hz frequency band', g.freqrange(1), g.freqrange(2)); end else diff --git a/pop_roi_statsplot.m b/pop_roi_statsplot.m index ec7d806..eac869c 100644 --- a/pop_roi_statsplot.m +++ b/pop_roi_statsplot.m @@ -70,7 +70,7 @@ frq_inds = find(S.freqs == g.freqrange(1)); title = sprintf('%1.1f Hz', g.freqrange(1)); else - frq_inds = find(S.freqs >= g.freqrange(1) & S.freqs < g.freqrange(2)); + frq_inds = find(S.freqs >= g.freqrange(1) & S.freqs <= g.freqrange(2)); title = sprintf('%1.1f-%1.1f Hz frequency band', g.freqrange(1), g.freqrange(2)); end else