Main Content

ringSquare

Create square ring on X-Y plane

Description

Use the ringSquare object to create a square ring on the X-Y plane.

Creation

Description

example

ring = ringSquare creates a square ring on the X-Y plane.

example

ring = ringSquare(Name=Value) sets Properties using one or more name-value arguments. For example, ringSquare(Center=[1 1]) creates an square ring shape centered at [1 1]. Properties not specified retain their default values.

Properties

expand all

Name of square ring, specified as a character vector or string scalar.

Example: ring = ringSquare(Name='ringsquare1')

Data Types: char | string

Center of the square ring in Cartesian coordinates, specified as a two-element vector.

Example: ring = ringAnnular(Center=[1 1])

Data Types: double

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

Example: ring = ringSquare(InnerSide=0.0060)

Data Types: double

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

Example: ring = ringSquare(Width=0.0030)

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
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 square ring with default properties.

ring = ringSquare
ring = 
  ringSquare with properties:

         Name: 'myringSquare'
       Center: [0 0]
        Width: 0.0020
    InnerSide: 0.0050

View the shape.

show(ring)

Figure contains an axes object. The axes object contains 2 objects of type patch. This object represents PEC.

Create a square ring with with the inner side length of 5 m and a width of 2 m.

ring = ringSquare(InnerSide=5,Width=2)
ring = 
  ringSquare with properties:

         Name: 'myringSquare'
       Center: [0 0]
        Width: 2
    InnerSide: 5

show(ring)

Figure contains an axes object. The axes object contains 2 objects of type patch. This object represents PEC.

Mesh the square ring at a maximum edge length of 1 m.

mesh(ring,MaxEdgeLength=1)

Figure contains an axes object. The axes object contains an object of type patch.

Version History

Introduced in R2021b

See Also