% batch script

% Make movies of different views.
% saving the movie
% >> mpgwrite(M,map,'c:\filename.mpg',[1 2 1 1 10 25])
% http://www.mathworks.com/support/solutions/data/8154.shtml

seconds =60
for i = 1:seconds
   frame =i
   % angle good in degrees
   angle = (360./seconds).*i;
   
   mainTM(angle,0,1);
   M1checker(i)   = getframe;
   mainTM(0,angle,1);
   M2checker(i)   = getframe;
   
end


% Perform same movies for old well
for i = 1:seconds
   frame =i
   angle = (360./seconds).*i;
   
   mainTM(angle,0,0);
   M1well(i)   = getframe;
   mainTM(0,angle,0);
   M2well(i)   = getframe;
   
end
