You are on page 1of 1

6a % Code to generate movie of time varying scalar clear; close all; % Set graphics parameters.

axis([0 3 -10 10]); hold on % Generate the movie. delt = 0.1; nframes = 24; for k % t s = 1:nframes, Coefficients = k*delt; = 10*cos(pi*t+pi/6);

cla; plot(t,s,'-o'); % Capture the frame M(:,k) = getframe; end; hold off movie(M)

Page 1