removeHoles
Description
removes holes with area less than the provided tolerance from the shape.s
= removeHoles(shapeobject
,holetol
)
Examples
Remove Holes from Rectangular Shape of Antenna
Create two rectangle shapes. Change the length and the center of orientation of the second rectangle to the values shown.
rect1 = antenna.Rectangle; rect2 = antenna.Rectangle; rect2.Length = 1e-7; rect2.Width = 0.5
rect2 = Rectangle with properties: Name: 'myrectangle' Center: [0 0] Length: 1.0000e-07 Width: 0.5000 NumPoints: 2
Subtract rectangle 1 from rectangle 2
rect3 = rect1-rect2
rect3 = Polygon with properties: Name: 'mypolygon' Vertices: [9x3 double]
show(rect3)
Remove holes from the new rectangle.
rect4 = removeHoles(rect3,1e-6)
rect4 = Polygon with properties: Name: 'mypolygon' Vertices: [4x3 double]
show(rect4)
Input Arguments
shapeobject
— Antenna shape object with sliver outlier
antenna.Circle
| antenna.Recatangle
| antenna.Polygon
| antenna.Ellipse
Antenna shape with sliver outlier, specified as antenna.Circle
, antenna.Rectangle
, antenna.Polygon
objects, antenna.Ellipse
, or the shapes
function.
Data Types: function
holetol
— Hole tolerance
nonnegative scalar
Hole tolerance, specified as a nonnegative scalar.
Data Types: double
Version History
Introduced in R2020b
See Also
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)