Main Content

racetrack

Create racetrack shape, of circle or rectangle type, on the X-Y plane

Since R2024a

Description

Use the racetrack object to create a racetrack shape centered at the origin and on the X-Y plane.

Creation

Syntax

Description

example

racetrackshape = racetrack creates a racetrack shape on the X Y plane.

example

racetrackshape = racetrack(Name=Value) sets Properties using one or more name-value arguments.

Properties

expand all

Name of the racetrack shape, specified as a character vector or string scalar.

Example: racetrackshape = racetrack(Name='racetrackshape1')

Data Types: char | string

Type of racetrack, specified as a 'Circle' or a 'Rectangle'.

Example: racetrackshape = racetrack(Type='Rectangle')

Data Types: char

AnchorPoints is a numeric 2-by-2 matrix. Each row defines the X and Y coordinates of the two anchor points in meters.

Example: racetackshape = racetrack(AnchorPoints = [2e-2 3e-2;4e-2 6e-2])

Data Types: double

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

Example: racetrackshape = racetrack(Length=6e-3)

Data Types: double

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

Example: racetrackshape = racetrack(Width=6e-3)

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
mirrorXMirror shape along X-axis
mirrorYMirror shape along Y-axis
minusShape1 - Shape2 for RF PCB shapes
plusShape1 + Shape2 for RF PCB shapes
plotPlot boundary of RF PCB shape
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 default recetrack shape

s = racetrack
s = 
  racetrack with properties:

            Name: "myracetrack"
    AnchorPoints: [2×2 double]
            Type: "Circle"
          Length: 0.0050
           Width: 1.0000e-03

show(s)

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

Create a racetrack shape with defined properties

s=racetrack(Type="Rectangle",AnchorPoints=[1e-3, 3e-3;5e-3 7e-3],Length=10e-3)
s = 
  racetrack with properties:

            Name: "myracetrack"
    AnchorPoints: [2×2 double]
            Type: "Rectangle"
          Length: 0.0100
           Width: 1.0000e-03

show(s)

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

Version History

Introduced in R2024a