function [A F] = getMiniAmpByCell(culturename,culture,fid,amplitude)

% A = amplitudes values to use with n minis per cell
% fid = ID of cell from which minis were taken
% n = number of minis to take from each culture

fid_all = fid(strmatch(culturename,culture));
amp_all = amplitude(strmatch(culturename,culture));

F = unique(fid_all);

for i = 1:length(F)
    A{i,1} = [amp_all(strmatch(F{i},fid_all))];
end
