Main Content

tracePoint

Create custom line trace based on specified X and Y coordinates

Since R2021b

Description

Use the tracePoint object to create a custom line trace by tracing a line along the specified X and Y coordinates.

Creation

Description

trace = tracePoint creates a line trace using default properties.

example

trace = tracePoint(Name=Value) sets Properties using one or more name-value arguments. For example, tracePoint(Width=0.0050) creates a line trace with the width of 0.0050. Properties not specified retain their default values.

example

Properties

expand all

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

Example: trace = tracePoint(Name='tracepoint1')

Data Types: char | string

Coordinates of custom line trace, specified as a n-by-2-array of X and Y coordinates.

Example: trace = tracePoint(TracePoints=[0 0;0 -10;6 -10;6 0])

Data Types: double

Width of the line trace, specified as a positive scalar in meters. This value is applied to all line segments in the custom trace.

Example: trace = tracePoint(Width=0.005)

Data Types: double

Corner where two line segments interface, specified as either "Sharp", "Miter", or "Smooth". To apply the same value to all corners, specify a string scalar. For a different value for all corners, specify a (n-2)-by-1 vector of strings.

Example: trace = tracePoint(Corner="Miter")

Data Types: string

Enables curves at the end of trace point, specified as 0 or 1.

Example: trace = tracePoint(EnableRoundedEnds=1)

Data Types: logical

Object Functions

addBoolean unite operation on two RF PCB shapes
subtractBoolean subtraction operation on two RF PCB shapes
intersectBoolean intersection operation on two RF PCB shapes
plusShape1 + Shape2 for RF PCB shapes
minusShape1 - Shape2 for RF PCB shapes
mirrorXMirror shape along X-axis
mirrorYMirror shape along Y-axis
andShape1 & Shape2 for RF PCB shapes
areaCalculate area of RF PCB shape in square meters
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
translateMove RF PCB shape to new location
scaleChange size of RF PCB shape by fixed amount

Examples

collapse all

Create a custom line using default properties.

customLine = tracePoint
customLine = 
  tracePoint with properties:

                 Name: 'mytracePoint'
          TracePoints: [10x2 double]
                Width: 0.0020
               Corner: "Sharp"
    EnableRoundedEnds: 0

View the trace.

show(customLine)

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

Create a custom line trace using default properties.

customLine = tracePoint;

Rotate the trace by 45 degrees along the Z-axis.

customLine = rotateZ(customLine,45)
customLine = 
  tracePoint with properties:

                 Name: 'mytracePoint'
          TracePoints: [10x2 double]
                Width: 0.0020
               Corner: "Sharp"
    EnableRoundedEnds: 0

View the trace.

show(customLine)

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

Mesh the custom line trace at a maximum edge length of 1 m.

mesh(customLine,MaxEdgeLength=1)

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

Create a custom trace line with smooth corners.

customLine = tracePoint(Name='tracepoint',Corner="Smooth")
customLine = 
  tracePoint with properties:

                 Name: 'tracepoint'
          TracePoints: [10x2 double]
                Width: 0.0020
               Corner: "Smooth"
    EnableRoundedEnds: 0

show(customLine)

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

Version History

Introduced in R2021b