function data_APfilt = medianFiltAPs(data,filtsize)
data = cell2mat(data);
data_APfilt = data;
for i=1:size(data,1)
    data_APfilt(i,:) = medfilt1(data(i,:),filtsize);
end
end