% Displays the output of the wator program in two plots against time: % RMS velocity (related to temperature), and time step size. % Read in output graph; time = output(:, 1); mnsqvel = output(:, 2); % plot mean square velocities versus time steps = length(time); t = time(steps); subplot(121), axis([0,t,0,max(mnsqvel)]); plot(time,mnsqvel,'w'); title('Mean square velocity'); xlabel('time'); % plot timesteps versus time subplot(122), timestep = time(2:steps)-time(1:steps-1); axis([0,steps-2,0,max(timestep)]); plot(timestep,'w'); title('time step'); xlabel('step number');