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=30; V=[cmin cmax]; counter=0; for i=2:4:Nx, counter=counter+1; x(counter)=i; end counter=0; for i=2:4:Ny, counter=counter+1; y(counter)=i; end for k=1:Nz, figure(1) caxis('manual') imagesc(x,y,squeeze(t(:,:,k))');shading flat;axis image;caxis(V);colorbar('horizontal'); set(gca,'ydir','norm') hold on quiver(x,y,u(2:4:Nx,2:4:Ny,k)',v(2:4:Nx,2:4:Ny,k)') title(['velocity and temperature at the timestep ' num2str(eval(it)) ' level ' int2str(k) ]); hold off drawnow pause end