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

    %% Get List of Graphics Objects in Map Display
% 
%%
% Display a map in a figure window.
load korea
h = worldmap(map, refvec);
set(h, 'Visible', 'off')
geoshow(h, map, refvec, 'DisplayType', 'texturemap')
demcmap(map)
%%
% Get a list of all the names of graphics objects in the figure.
obj_names = namem
%%
% Convert the array of names into a cell array of character vectors.
obj_names_cell = cellstr(obj_names)