From a6d79ec2687127e7cc8acd41c45f5213524f36f4 Mon Sep 17 00:00:00 2001 From: Ryan Harvey Date: Fri, 22 Nov 2024 11:11:38 -0500 Subject: [PATCH] autoformat --- preProcessing/CleanRez.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preProcessing/CleanRez.m b/preProcessing/CleanRez.m index 1830d3b..bb87bb8 100644 --- a/preProcessing/CleanRez.m +++ b/preProcessing/CleanRez.m @@ -201,10 +201,10 @@ d(eye(size(d)) == 1) = nan; % Difference between range of the electrode closest to the spike with the ranges of all the other electrodes % When the spike is clearly visible in one elecrode group, this should be very large. - signal(i, 1) = mean(reshape(d(thismax, ~thismax), [], 1),"omitnan"); + signal(i, 1) = mean(reshape(d(thismax, ~thismax), [], 1), "omitnan"); % Difference between ranges of all the other electrodes (where no real spike should be visible) % This is our estimate of differences to be expected due to noise, rather than a real spike - noise(i, 1) = mean(reshape(d(~thismax, ~thismax), [], 1),"omitnan"); + noise(i, 1) = mean(reshape(d(~thismax, ~thismax), [], 1), "omitnan"); end % signal to noise ratio (snr) below 4 is noisy (imperically defined) snr = signal ./ noise;