Main Content

pcbTraceCustom

Create custom trace

Since R2025a

    Description

    Use the pcbTraceCustom object to create custom traces for transmission lines.

    Creation

    Description

    trace = pcbTraceCustom creates a trace in microstrip form with default properties.

    example

    trace = pcbTraceCustom(PropertyName=Value) sets Properties using one or more property name-value arguments. For example, trace = pcbTraceCustom(TraceType = traceTapered) creates a custom trace with a tapered trace.

    example

    Properties

    expand all

    Trace shape specified as a shape object.

    Note

    traceLine, traceRectangular, and tracePoint shapes are not supported.

    Example: trace = pcbTraceCustom(TraceShape=traceRectanglular)

    Data Types: string

    Height of the trace above the ground plane specified in meters.

    Example: trace = pcbTraceCustom(Height=0.259e-3)

    Data Types: double

    Width of the ground plane specified in meters.

    Example: trace = pcbTraceCustom(Height=0.025)

    Data Types: double

    Type of metal used in conducting layers, specified as a metal object. For more information see metal. The type of metal in a micrpcbTraceCustom object with default properties is PEC.

    Example: m = metal('Copper');trace = pcbTraceCustom(Conductor=m)

    Data Types: string

    Type of dielectric material used as a substrate, specified as a dielectric object. For more information, see dielectric. The dielectric material in a pcbTraceCustom object with default properties is Teflon.

    Example: d = dielectric('FR4');trace = pcbTraceCustom(Substrate=d)

    Data Types: string

    Object Functions

    showDisplay PCB component structure or PCB shape
    sparametersCalculate S-parameters for RF PCB objects
    meshChange and view mesh properties of metal or dielectric in PCB component
    currentCalculate and plot current distribution
    chargeCalculate and plot charge distribution
    layoutPlot all metal layers and board shape
    shapesExtract all metal layer shapes of PCB component

    Examples

    collapse all

    This example shows the creation of a default custom PCB Trace object

    Create the object

    trace = pcbTraceCustom;

    Visualize the object

    show(trace)

    Figure contains an axes object. The axes object with title pcbTraceCustom element, xlabel x (mm), ylabel y (mm) contains 6 objects of type patch, surface. These objects represent PEC, feed, Teflon.

    This example shows how to create a PCB custom trace with a specified property

    Create the object

    Set the Trace Shape property to a tapered trace

    trace = pcbTraceCustom(TraceShape=traceTapered)
    trace = 
      pcbTraceCustom with properties:
    
              TraceShape: [1×1 traceTapered]
                  Height: 2.5400e-04
        GroundPlaneWidth: 0.0200
               Substrate: [1×1 dielectric]
               Conductor: [1×1 metal]
    
    

    Vizualize the object

    Use the show function to vizualize the object

    show(trace)

    Figure contains an axes object. The axes object with title pcbTraceCustom element, xlabel x (mm), ylabel y (mm) contains 6 objects of type patch, surface. These objects represent PEC, feed, Teflon.

    Version History

    Introduced in R2025a