usage:
1. set axis limits and axis ticks first:
for example
set(gca,'xlim',[-180 180],'xtick',[-150:50:150],'ylim',[-90 90],'ytick',[-50:50:50])
2. use tick_geo, see tick_geo.m for an explanation of the input arguments
tick_geo(1,10)
tick_geo(1,10,'x') affects only x-axis assuming it is longitude
tick_geo(1,10,'X') affects only x-axis assuming it is latitude

m_file