%% Set Geographic Tick Label Format
% Set the tick label format for a geographic plot using geotickformat.
% First, specify the coordinates of the three largest cities in Brazil.

lat = [-23.5500   -22.9083   -15.7939];
lon = [-46.6333   -43.1964   -47.8828];

% Plot the coordinates and add text labels.

geoplot(lat,lon,'r.','MarkerSize',8)
geolimits([-25 -16], [-54 -38])
text(lat,lon,["Sao Paulo","Rio de Janeiro","Brasilia"])

%
% Change the tick label format to decimal degrees using geotickformat. The cardinal directions of south and west are indicated by a minus sign.

geotickformat -dd

% Copyright 2018 The MathWorks, Inc.