boundary
polyshape
の境界の頂点の座標
説明
例
多角形の境界の頂点
2 つの境界をもつ多角形を作成し、両方の境界の頂点の座標を表示します。境界の頂点のリストは NaN
で区切られます。
x1 = [0 1 2]; y1 = [0 1 0]; x2 = [2 3 4]; y2 = [1 2 1]; polyin = polyshape({x1,x2},{y1,y2}); plot(polyin)
[x,y] = boundary(polyin)
x = 9×1
0
1
2
0
NaN
2
3
4
2
y = 9×1
0
1
0
0
NaN
1
2
1
1
入力引数
polyin
— 入力 polyshape
スカラー
入力 polyshape
。スカラーとして指定します。
データ型: polyshape
I
— 境界インデックス
スカラー整数 | 整数のベクトル
境界インデックス。スカラー整数または整数のベクトルとして指定します。I
の各要素は、入力 polyshape
の 1 つの境界に対応します。
データ型: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
出力引数
x
— x 座標
列ベクトル
polyshape
の境界の x 座標。列ベクトルとして返されます。複数の境界を返す場合、boundary
は各境界の座標の組の間に NaN
値を配置します。
データ型: double
y
— y 座標
列ベクトル
polyshape
の境界の y 座標。列ベクトルとして返されます。複数の境界を返す場合、boundary
は各境界の座標の組の間に NaN
値を配置します。
データ型: double
バージョン履歴
R2017b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)