No BSD License  

Highlights from
Numerical Methods for Physics

from Numerical Methods for Physics by Alejandro Garcia
Companion Software

balle_p.m
clear;  %%% Plot data from balle.f %%%
load xplot.dat;  load yplot.dat;
% Mark the location of the ground by a straight line
xground = [min(xplot) max(xplot)]; yground = [0 0];
% Graph the trajectory of the baseball
plot(xplot,yplot,'+',xground,yground,'-');
xlabel('position (m)')
ylabel('height (m)')
title('Projectile Motion')

Contact us at files@mathworks.com