clear path global Nx Ny Nz global lat long dz dm mdep global delt_su su_its t_su delt global descriptor this_path global f deltaf Q beta r_expt r_heat H global time rots it global g Cp rho_bar alpha global u v t w global iterations cmin=19; cmax=37; V=[cmin cmax]; caxis('manual') % Load experimental parameters param_file_name = ... input(' Please enter the name of the m-file with the parameters for this run : ','s') ; feval(param_file_name) ; path = this_path cmdstr=['cd ' path ]; eval(cmdstr); path=pwd it=iterations; frames=length(it); % title='in-situ surface temperature'; M=moviein(frames); for i=1:frames tfilename=(['T.' it(i,1:10) ]); t=rdmeta(tfilename,'b'); time = (eval(it(i,1:10))-su_its)*delt ; rots = time*f/(4*pi); imagesc(lat(2:Nx-1),long(2:Ny-1),t(2:Nx-1,2:Ny-1,1)');axis image;caxis(V),colorbar text(0,(Ny+5),descriptor); % text(0,(Ny+7),title); text(0,-2,'time');text(15,-2,num2str(time)); M(:,i)=getframe(gcf); end