www.gusucode.com > map 案例源码 matlab代码程序 > map/OverrideSymbolSpecificationOnCommandLineExample.m
%% Override Symbol Specification on Command Line % %% % Create a symbol specification, setting various properties. % Copyright 2015 The MathWorks, Inc. roadspec = makesymbolspec('Line',... {'Default', 'Color', 'yellow'}, ... {'ADMIN_TYPE',0,'Color','c'}, ... {'ADMIN_TYPE',3,'Color','r'},... {'CLASS',6,'Visible','off'},... {'CLASS',[1 4],'LineWidth',2}); %% % Display the vector data, specifying the color on the command line. figure mapshow('boston_roads.shp', 'Color', 'black', 'SymbolSpec', roadspec);