function plotAmpMean(amplitudes,xpos)

if nargin < 2
    xpos = 0;
end

mu = mean(amplitudes);
sigma = std(amplitudes);

%plot([0+xpos],mu,'o','MarkerSize',20);
bar([0+xpos],mu);
hold on;
errorbar([0+xpos],mu,sigma,'-k','LineWidth',2);
grid on;
set(gca,'FontSize',16);
ylabel('Amplitude (pA)');

end