ringSquare

Create square ring on X-Y plane

Since R2021b

Description

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

Creation

Syntax

``ring = ringSquare``
``ring = ringSquare(Name=Value)``

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

 `add` Boolean unite operation on two RF PCB shapes `and` Shape1 & Shape2 for RF PCB shapes `area` Calculate area of RF PCB shape in square meters `intersect` Boolean intersection operation on two RF PCB shapes `mesh` Change and view mesh properties of metal or dielectric in PCB component `minus` Shape1 - Shape2 for RF PCB shapes `plus` Shape1 + Shape2 for RF PCB shapes `rotate` Rotate RF PCB shape about defined axis `rotateX` Rotate RF PCB shape about x-axis `rotateY` Rotate RF PCB shape about y-axis and angle `rotateZ` Rotate RF PCB shape about z-axis `subtract` Boolean subtraction operation on two RF PCB shapes `scale` Change size of RF PCB shape by fixed amount `show` Display PCB component structure or PCB shape `translate` Move 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)`

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)`

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

`mesh(ring,MaxEdgeLength=1)`

Version History

Introduced in R2021b