メインコンテンツ

antenna.Rectangle

xy 平面上に原点を中心とする長方形を作成する

説明

antenna.Rectangle オブジェクトを使用して、xy 平面上に原点を中心とする長方形を作成します。antenna.Rectangle を使用すると、pcbStack を使用して単層または多層のアンテナを作成できます。

作成

説明

rect = antenna.Rectangle は、xy 平面上に原点を中心とする長方形を作成します。

rect = antenna.Rectangle(PropertyName=Value) は、名前と値の引数を 1 つ以上使用してプロパティを設定します。PropertyName はプロパティ名、Value は対応する値です。PropertyName1=Value1,...,PropertyNameN=ValueN のように、複数の名前と値の引数を任意の順番で指定できます。指定されなければ、プロパティは既定値を保持します。

たとえば、rect = antenna.Rectangle(Length=2) は長さ 2 m の長方形を作成します。

プロパティ

すべて展開する

長方形の名前。string として指定します。

例: "Rect1"

データ型: string

長方形の中心の直交座標。メートル単位の 2 要素ベクトルとして指定します。

例: [0.006 0.006]

データ型: double

長方形の長さ。メートル単位のスカラーとして指定します。

例: 2

データ型: double

長方形の幅。メートル単位のスカラーとして指定します。

例: 4

データ型: double

1 辺あたりの離散化点の数。スカラーとして指定します。

例: 16

データ型: double

オブジェクト関数

addPerform Boolean unite operation on two shapes
subtractPerform Boolean subtraction operation on two shapes
intersectGenerate and plot intersection of two shapes
plusJoin two shapes
minusCarve a shape from other shape
andPerform Boolean intersection operation on two shapes
areaCalculate area of 2-D shapes in square meters
showアンテナ、アレイ、AI ベースのアンテナ、プラットフォーム、または形状の表示
plotPlot boundary of 2-D shape
meshGenerate and view mesh for antennas, arrays, and custom shapes
rotateRotate shape about axis by angle
rotateXRotate shape about x-axis by angle
rotateYRotate shape about y-axis by angle
rotateZRotate shape about z-axis by angle
translate形状を新しい位置に移動する
scaleChange size of shape by fixed factor
mirrorXMirror shape along x-axis
mirrorYMirror shape along y-axis
removeHolesRemove holes from shape
removeSliversRemove sliver outliers from shape boundary

すべて折りたたむ

antenna.Rectangle を使用して長方形の形状を作成し、表示します。

r1 = antenna.Rectangle
r1 = 
  Rectangle with properties:

         Name: 'myrectangle'
       Center: [0 0]
       Length: 1
        Width: 2
    NumPoints: 2

show(r1)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, myrectangle.

長さ 2 m、幅 4 m の長方形を作成して表示します。

r2 = antenna.Rectangle(Length=2,Width=4);
show(r2)
axis equal

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, myrectangle.

長方形を回転させます。

rotateZ(r2,45);

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, myrectangle.

show(r2)

Figure contains an axes object. The axes object with xlabel x (m), ylabel y (m) contains 2 objects of type patch. These objects represent PEC, myrectangle.

長さ 0.15 m、幅 0.15 m の長方形を作成します。

r  = antenna.Rectangle(Length=0.15,Width=0.15);

長さ 0.05 m、幅 0.05 m の 2 つ目の長方形を作成します。2 つ目の長方形の中心を、最初の長方形 r の長さの半分の位置に設定します。

n = antenna.Rectangle(Center=[0.075,0],Length=0.05,Width=0.05);

r から n を減算することで、ノッチのある長方形を作成して表示します。

rn  = r-n;
show(rn)

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

ノッチのある長方形の面積を計算します。

area(rn)
ans = 
0.0212

バージョン履歴

R2017a で導入