% update_history.m

[rows,cols] = size(V);

if get(haccum,'Value') == 1 & size(Vhist,1) == rows
  Afihist = Afihist + Afi;
  Amnhist = Amnhist + Amn;
  Vhist = Vhist + V;
  total_runs = total_runs + 1;
else
  reset_mean
end

