Main Content

traceRectangular

Create rectangular trace

Since R2021b

Description

Use the traceRectangular object to create a rectangular trace centered at the origin on the X-Y plane.

Creation

Description

trace = traceRectangular creates a rectangular trace centered at the origin and on the X-Y plane.

example

trace = traceRectangular(Name=Value) sets Properties using one or more name-value arguments. For example, traceRectangular(Center=[1 1]) creates a rectangular trace centered at [1 1]. Properties not specified retain their default values.

example

Properties

expand all

Name of the rectangular trace, specified as a character vector or a string scalar.

Example: trace = traceRectangular(Name="rectangletrace1")

Data Types: char | string

Center of the rectangular trace in Cartesian coordinates, specified as a two-element vector.

Example: trace = traceRectangular(Center=[1 1])

Data Types: double

Length of the rectangle in meters, specified as a positive scalar.

Example: trace = traceRectangular(Length=0.0500)

Data Types: double

Width of the rectangle in meters, specified as a positive scalar.

Example: trace = traceRectangular(Width=0.015)

Data Types: double

Object Functions

addBoolean unite operation on two RF PCB shapes
andShape1 & Shape2 for RF PCB shapes
areaCalculate area of RF PCB shape in square meters
intersectBoolean intersection operation on two RF PCB shapes
meshChange and view mesh properties of metal or dielectric in PCB component
minusShape1 - Shape2 for RF PCB shapes
plusShape1 + Shape2 for RF PCB shapes
mirrorXMirror shape along X-axis
mirrorYMirror shape along Y-axis
rotateRotate RF PCB shape about defined axis
rotateXRotate RF PCB shape about x-axis
rotateYRotate RF PCB shape about y-axis and angle
rotateZRotate RF PCB shape about z-axis
subtractBoolean subtraction operation on two RF PCB shapes
scaleChange size of RF PCB shape by fixed amount
showDisplay PCB component structure or PCB shape
translateMove RF PCB shape to new location

Examples

collapse all

Create a rectangular trace with default properties.

trace = traceRectangular
trace = 
  traceRectangular with properties:

      Name: 'mytraceRectangular'
    Center: [0 0]
    Length: 0.0200
     Width: 0.0050

View the trace.

show(trace)

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, mytraceRectangular.

Create a 2 cm-by-2 cm rectangular trace.

trace = traceRectangular(Length=0.02,Width=0.02);

Rotate the trace by 45 degrees about the z-axis.

trace = rotateZ(trace,45);

Mesh the trace at a maximum edge length of 5 mm.

mesh(trace,MaxEdgeLength=5e-3)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains an object of type patch.

Version History

Introduced in R2021b