data = load('ambient_current.txt');

ac = zeros(1,2); % ac = ambient current

ac(1,1) = mean(data);

ac(1,2) = sqrt(var(data));