function M = makemovie(fname,t)

% Make a movie out of frames created by calling 'fname' over times t.

nf = length(t);
M = moviein(nf);
for jf = 1:nf
  feval(fname,t(jf));
  M(:,jf) = getframe;
end
 
