convhull
polyshape
の凸包
説明
例
多角形の凸包
3 つの固体領域をもつ多角形の凸包を計算します。
x1 = [0 1 2];
y1 = [0 1 0];
x2 = [2 3 4];
y2 = [1 2 1];
x3 = [0 0.5 0.5 0];
y3 = [2 2 2.5 2.5];
polyin = polyshape({x1,x2,x3},{y1,y2,y3});
plot(polyin)
hold on
polyout = convhull(polyin);
plot(polyout)
入力引数
polyin
— 入力 polyshape
スカラー | ベクトル | 行列 | 多次元配列
入力 polyshape
。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: polyshape
バージョン履歴
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)