12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gplotPurpose2gplotPlot set of nodes using an adjacency matrixSynopsisDescriptiongplot(A,Coordinates)gplot(A,Coordinates,LineSpec)The gplot function graphs a set of coordinates using an adjacency matrix.gplot(A,Coordinates) plots a graph of the nodes defined in Coordinatesaccording to the n-by-n adjacency matrix A, where n is the number of nodes.Coordinates is an n-by-2 or an n-by-3 matrix, where n is the number of nodesand each coordinate pair or triple represents one node.gplot(A,Coordinates,LineSpec) plots the nodes using the line type, markersymbol, and color specified by LineSpec.Remarks For two-dimensional data, Coordinates(i,:) = [x(i) y(i)] denotes node i,and Coordinates(j,:) = [x(j) y(j)] denotes node j. If node i and node j arejoined, A(i,j) or A(j,i) are nonzero; otherwise, A(i,j) and A(j,i) are zero.2-214

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!