Watch this Author's files

The x axis label seems to overlap the x tick labels?

data=rand(5);

plot(0:pi/4:pi, data,'LineWidth', 3);

format_ticks(gca,{'0', '\pi/4', '\pi/2', '3\pi/4', '\pi'},[],0:pi/4:pi)

ylim([0 1]); xlabel('My x label') ylabel('My y label')

fontSize = 20;

set(gca,'FontSize',fontSize)

As Jamie mentioned, deg2rad is required (which can be found here: http://www.mathworks.com/matlabcentral/fileexchange/28503). Also, it is not explicit in the doc, but the input arguments are haversine([lat1 long1], [lat2, long2]).

Contact us