diff --git a/pop_roi_connectplot.m b/pop_roi_connectplot.m index adef5b7..9295893 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