%% Use Chart Line Properties to Customize Appearance of the Line
% Plot a straight line between two points on a map. Specify the endpoints of the line using the coordinates of Seattle and Anchorage. Specify latitude and longitude in degrees.

latSeattle = 47.62;
lonSeattle = -122.33;
latAnchorage = 61.20;
lonAnchorage = -149.9;

%
% Plot the data using geoplot. Adjust the latitude and longitude limits of the map using geolimits. Customize the appearance of the line by specifying the LineWidth and Color properties.

geoplot([latSeattle latAnchorage],[lonSeattle lonAnchorage],...
    'LineWidth',2,'Color',[.6 0 0])
geolimits([45 62],[-149 -123])

%
% Copyright 2018 The MathWorks, Inc.