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

    %% Read entire contents of shapefile
%  
%%
% Read the entire |concord_roads.shp| shapefile, including the attributes
% in |concord_roads.dbf|. The |shaperead| function returns a mapstruct with
% X and Y coordinate vectors.

% Copyright 2015 The MathWorks, Inc.

S = shaperead('concord_roads.shp')