MATLAB ヘルプ センター
polyshape の穴の境界を polyshape オブジェクトの配列に変換
polyshape
polyout = holes(polyin)
polyout = holes(polyin) は、polyshape オブジェクトの穴の境界を polyshape オブジェクトの配列として返します。polyout の要素数は、polyin の穴の境界の数と同じです。
polyout
polyin
例
すべて折りたたむ
2 つの固体領域と 2 つの穴をもつ多角形を作成します。穴の境界を polyshape オブジェクトの配列に変換します。
P = [0 0; 0 2; 2 2; 2 0; NaN NaN; 0.5 0.5; 0.5 1.5; 1.5 1.5; 1.5 0.5; ... NaN NaN; 3 0.5; 3.5 1.5; 4 0.5; NaN NaN; 3.25 0.6; 3.75 0.6; 3.5 1]; polyin = polyshape(P); plot(polyin) xlim([-0.5 4.5]) ylim([-0.5 2.5])
polyout = 2×1 polyshape array with properties: Vertices NumRegions NumHoles
plot(polyout) xlim([-0.5 4.5]) ylim([-0.5 2.5])
入力 polyshape。スカラーとして指定します。
データ型: polyshape
R2017b で導入
polyshape | boundary | rmholes | ishole
boundary
rmholes
ishole
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ