function [maximum,minimum,dev,m] = find_stats(data)
% Standardize arrays of data in cell array while ignoring NaNs

maximum = cell(size(data));
minimum = cell(size(data));
dev = cell(size(data));
m = cell(size(data));

for i = 1:length(data)
    % Extract the data array and compute mean and standard deviation while ignoring NaNs
    dataArr = data{i};
    maximum{i} = max(dataArr);
    minimum{i} = min(dataArr);
    dev{i} = std(dataArr,"omitnan");
    m{i} = mean(dataArr,"omitnan");

end
    
end 