Main Content

dumbbell

Create dumbbell shape on X-Y plane

Since R2023a

Description

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

Creation

Description

example

dumbbellshape = dumbbell creates a dumbbell shape centered on at the origin and on the X-Y plane.

example

dumbbellshape = dumbbell(Name=Value) sets Properties using one or more name-value arguments. For example, dumbbell(ReferencePoint=[1 1]) creates a dumbbell shape at the reference point [1 1]. Properties not specified retain their default values.

Properties

expand all

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

Example: dumbbellshape = dumbbell(Name='dumbbellshape1')

Data Types: char | string

Reference point of the dumbbell shape in Cartesian coordinates, specified as a two-element vector.

Example: dumbbellshape = dumbbell(ReferencePoint=[1 1])

Data Types: double

Type of dumbbell, specified as a 'Polygon' or a 'Circle'.

Example: dumbbellshape = dumbbell(Type='Circle')

Data Types: char

Number of sides in the polygon, specified as a positive scalar in the range [3,8].

Example: dumbbellshape = dumbbell(Numsides=7)

Dependencies

To enable this property, set Type to 'Polygon'.

Data Types: double

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

Example: dumbbellshape = dumbbell(ArmLength=0.0400)

Data Types: double

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

Example: dumbbellshape = dumbbell(ArmWidth=0.00400)

Data Types: double

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

Example: dumbbellshape = dumbbell(SideLength=0.0300)

Dependencies

To enable this property, set Type to 'Polygon'.

Data Types: double

Diameter of the circle in meters, specified as a positive scalar.

Example: dumbbellshape = dumbbell(Diameter=0.0300)

Dependencies

To enable this property, set Type to 'Circle'.

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 dumbbell shape with default properties.

dumbbellshape = dumbbell
dumbbellshape = 
  dumbbell with properties:

              Name: 'mydumbbell'
    ReferencePoint: [0 0]
              Type: 'Polygon'
          NumSides: 4
         ArmLength: 0.0200
          ArmWidth: 0.0020
        SideLength: 0.0100

View the dumbbell shape.

show(dumbbellshape)

Create a dumbbell with circular heads.

dumbbellshape = dumbbell(Type='Circle')
dumbbellshape = 
  dumbbell with properties:

              Name: 'mydumbbell'
    ReferencePoint: [0 0]
              Type: 'Circle'
          Diameter: 0.0100
         ArmLength: 0.0200
          ArmWidth: 0.0020

View the dumbbell shape.

show(dumbbellshape)

Version History

Introduced in R2023a