% function pauseMov adds frames to movie
function h = pauseMov(vid,mframes)
for i = 1:mframes 
    frame = getframe(gcf); 
    writeVideo(vid,frame); 
end 