%% Movie 1 in Matlab - you need this file and yprime file from last week. % Place in your ode45 code from last week to solve the odes from last week. % Set numframes as length of vector. % Set the starting point of the pendulum. fig1=figure(1); winsize=get(fig1,'Position'); winsize(1:2)=[0 0]; A=moviein(numframes,fig1,winsize); set(fig1,'NextPlot','replacechildren') for i=1:numframes %Create vector to be graphed with rotation matrix. %Plot vector using blue star marker %fix axis with axis command (need to create a box from -1 to 1 in both %directions! A(:,i)=getframe(fig1,winsize); end movie(fig1,A,3,3,winsize)