/[MITgcm]/MITgcm_contrib/arnaud_matlab/show_movie.m
ViewVC logotype

Contents of /MITgcm_contrib/arnaud_matlab/show_movie.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Aug 25 16:00:59 2003 UTC (20 years, 8 months ago) by edhill
Branch: MAIN
CVS Tags: HEAD
Initial checkin of Arnaud's MatLAB diagnostics

1 %
2 % function [M] = show_movie(field,x,y,NREC,lax,palette,NFIG,NTIMES,FPS)
3 %
4 % return a movie matrix M.
5 %
6 function [M] = show_movie(field,x,y,NREC,lax,palette,NFIG,NTIMES,FPS)
7
8 M = moviein(NREC);
9 figure(NFIG)
10 for n=1:NREC
11 pcolor(x,y,field(:,:,n)');
12 title(['record N = ' num2str(n)],'Fontsize',18);
13 caxis(lax);
14 colormap(palette);
15 colorbar;
16 M(:,n) = getframe;
17 end
18 movie(M,NTIMES,FPS)

  ViewVC Help
Powered by ViewVC 1.1.22