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 properties specified by the Name-Value Arguments.

example

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

p = plot(shape,Name=Value) plots the boundary of the specified shape and returns a line object with additional properties 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

2-D shape created using shape objects such as:

  • antenna.Rectangle, antenna.Circle, antenna.Ellipse, and antenna.Polygon, and antenna.Triangle.

  • shape.Rectangle, shape.Circle, shape.Ellipse, and shape.Polygon

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

|