Main Content

plot

Plot boundary of 2-D shape

Description

plot(shape) plots the boundary of the specified shape.

plot(shape,Name=Value) plots the boundary of the specified shape with additional options specified by the name-value arguments.

p = plot(shape) plots the boundary of the specified shape and returns a line object.

example

p = plot(shape,Name=Value) plots the boundary of the specified shape and returns a line object with additional options specified by the name-value arguments.

Examples

collapse all

Create a rectangular shape and plot its boundary.

r = shape.Rectangle;
p = plot(r);

Figure contains an axes object. The axes object contains an object of type line.

Input Arguments

collapse all

Shape to plot the boundary, specified as one of the following objects:

Example: antenna.Rectangle

Example: shape.Polygon

Output Arguments

collapse all

Boundary of the shape returned as a line object.

Version History

Introduced in R2017a

See Also

|