Main Content


Calculate area of RF PCB shape in square meters

Since R2021b



a = area(shape) calculates the area of the shape in units of square meters.


collapse all

Create and view a default spiral trace.

trace = traceSpiral;

Figure contains an axes object. The axes object with xlabel x (mm), ylabel y (mm) contains 2 objects of type patch. These objects represent PEC, myspiral.

Get the area of the spiral trace.

a = area(trace)
a = 4.5200e-04

Input Arguments

collapse all

RF PCB shape created using custom elements and shape objects of RF PCB Toolbox™, specified as an object.

Example: shape = bendCurved; specifies the shape as a bendCurved object.

Version History

Introduced in R2021b