x = 0:5000;
ss1 = sin(0.1*x)+sin(0.105*x);
plot(ss1)
title('sum of two sin waves')
pause

moviein(12);
for t=1:13 
        plot(sin(10*t-0.1*x)+sin(10.5*t-0.105*x))
        axis([0,5000,-4,4])
        title('sum of two sins, dw/w=0.05, Vp=100, vg=100')
        m(:,t) = getframe;
end
movie(m,20)

end
