rmholes
polyshape
에서 구멍 제거
설명
예제
다각형 구멍 채우기
구멍이 있는 다각형을 만듭니다.
t = 0.05:0.5:2*pi; x1 = cos(t); y1 = sin(t); x2 = 0.5*cos(t); y2 = 0.5*sin(t); polyin = polyshape({x1,x2},{y1,y2})
polyin = polyshape with properties: Vertices: [27x2 double] NumRegions: 1 NumHoles: 1
plot(polyin)
구멍이 제거된 새 다각형을 만듭니다.
polyout = rmholes(polyin)
polyout = polyshape with properties: Vertices: [13x2 double] NumRegions: 1 NumHoles: 0
plot(polyout)
입력 인수
polyin
— 입력 polyshape
스칼라 | 벡터 | 행렬 | 다차원 배열
입력 polyshape
로, 스칼라, 벡터, 행렬 또는 다차원 배열로 지정됩니다.
데이터형: polyshape
확장 기능
C/C++ 코드 생성
MATLAB® Coder™를 사용하여 C 코드나 C++ 코드를 생성할 수 있습니다.
사용법 관련 참고 및 제한 사항:
코드 생성 시 동적 메모리 할당이 활성화되어 있어야 합니다.
버전 내역
R2017b에 개발됨
참고 항목
rmboundary
| ishole
| holes
| polyshape
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 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)