Authored by Anthony Boyer

Fix for cropped files with inconsistent channels.

... ... @@ -60,9 +60,9 @@ function ImaGIN_SpikesDetection(S)
temp_montage = fieldnames(channels);
for nn=1:numel(temp_montage)
if sum(strcmp(temp_montage{nn},chanlabels(D))) == 0
channels.(temp_montage{nn}).timeserie{ff} = [];
channels.(temp_montage{nn}).zeroed{ff} = [];
channels.(temp_montage{nn}).coordinates{ff} = [];
channels.(temp_montage{nn}).timeserie{ff,:} = [];
channels.(temp_montage{nn}).zeroed{ff,:} = [];
channels.(temp_montage{nn}).coordinates{ff,:} = [];
end
end
end
... ...