diff --git a/+bc/+qm/+helpers/getSpatialDecay.m b/+bc/+qm/+helpers/getSpatialDecay.m index fc2069a..d98e60f 100644 --- a/+bc/+qm/+helpers/getSpatialDecay.m +++ b/+bc/+qm/+helpers/getSpatialDecay.m @@ -31,6 +31,8 @@ if numel(channels_withSameX) < MIN_CHANNELS_FOR_FIT warning('Insufficient channels with similar X position for fitting.'); + spatialDecayPoints_loc = nan(NUM_CHANNELS_FOR_FIT,1); + spatialDecayPoints = nan(1, NUM_CHANNELS_FOR_FIT); return; end