www.gusucode.com > map 案例源码 matlab代码程序 > map/ConstructGeopointVectorUsingLatitudeAndLongitudeCoordinaExample.m

    %% Construct geopoint Vector Using Latitude and Longitude Coordinates
% This example shows how to create a geopoint vector specifying latitude
% and longitude coordinates.  The example then adds a field to the object
% dynamically.
%%
% Construct a geopoint vector from latitude and longitude values.

% Copyright 2015 The MathWorks, Inc.

lat = 51.519;
lon = -.13;
p = geopoint(lat,lon)
%%
% Add a property to the object dynamically.
p.Name = 'London'