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

    %% Plot Graph Using Line Specifier
% Create and plot a graph. Specify the |LineSpec| input to change the
% |Marker|, |NodeColor|, and/or |LineStyle| of the graph plot.

% Copyright 2015 The MathWorks, Inc.

G = graph(bucky);
plot(G,'-.dr','NodeLabel',{})