clear 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=20; cmax=28; V=[cmin cmax]; counter=0; for i=2:8:Nx, counter=counter+1; x(counter)=i; end counter=0; for i=2:4:Ny, counter=counter+1; y(counter)=i; end nz=5 caxis('manual') % colormap gray % cmap=flipud(colormap); cmap=zeros(64,3); colormap(cmap); % imagesc(lat,long,squeeze(t(:,:,nz))');shading flat;axis image;caxis(V); contour(squeeze(t(:,:,nz))',21:1:30);shading flat;axis image;caxis(V); % colorbar('horizontal'); set(gca,'ydir','norm','FontSize',15,'XtickLabel','|','YTickLabel','|') xlabel('X','FontSize',20) ylabel('Y','FontSize',20,'Rotation',[0]) hold on quiver(x,y,u(2:8:Nx,2:4:Ny-2,nz)',v(2:8:Nx,2:4:Ny-2,nz)') % title(['velocity and temperature at the timestep ' num2str(eval(it)) ' level ' int2str(5) ]); hold off