for k=170:4:290
  % doesn't name sense..if frame numbers wrong; renumber k_rev=170+290-k;
  k_rev=(290-k)/4;
  eval(sprintf('!pnmrotate -90 stabilized%03d.ppm > stabilizedr%02d.ppm',k,k_rev))
end%for

