Last=225
for l=0:Last
  dis('computing average of all frames; about to include frame %d',l)
  if l==0       % first frame
    total=loadframe(0);
  end%if
  total=total+loadframe(l);
end%for
avg=total/Last;
save average_all_frames avg

