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

    %% Sort and Display Property of WMSLayer Object
% Sort and display the |LayerName| property with an index.
%%
% Retrieve the layers.

% Copyright 2015 The MathWorks, Inc.

layers = wmsfind('elevation');
%%
% Sort the layers.
[layerNames, index] = sort({layers.LayerName});
%%
% Display as a sample the first five results.
layers = layers(index);
disp(layers(1:5),'Label','off', 'Properties', 'layername');