Member of the plots class.
gplot(a, xy)
gplot(a, xy, attributes)
Generates a plot of coordinates using an adjacency matrix.
| Name | Description | ||||||||||||||||||||||||||||||||||
| a | Specifies the adjacency matrix. a is an n-by-n matrix, where n equals the number of vertices in the plot. If vertices i and j are adjacent, a(i, j) is non-zero. Otherwise, a(i, j) is zero. length(a) must equal length(xy). | ||||||||||||||||||||||||||||||||||
| xy | Specifies the coordinates for each vertex. xy is an n-by-2 matrix, where n equals the number of vertices in the plot. The first and second column of xy specify the x- and y-coordinates, respectively. length(xy) must equal length(a). | ||||||||||||||||||||||||||||||||||
| attributes | Specifies valid plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. attributes is a string that accepts a combination of the following values.
|
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
a = [0, 1, 1, 1, 0, 0, 0;...
1, 0, 0, 1, 1, 0, 0;...
1, 1, 0, 1, 0, 1, 0;...
1, 1, 1, 0, 1, 1, 1;...
0, 1, 0, 1, 0, 0, 1;...
0, 0, 1, 1, 0, 0, 1;...
0, 0, 0, 1, 1, 1, 0];
xy = [-0.5 0.866; 0.5 0.866; -1 0; 0 0; 1 0; -0.5 -0.866; 0.5 -0.866];
gplot(a, xy, 'bo--')