How to generate random holes in a 2D surface?
6 次查看(过去 30 天)
显示 更早的评论
1. Generation of a 2D surafce. 2. generation of random holes on 2D surface. 3. Extraction of co-ordinate of holes 4. Meshing of the 2D surface and extraction of node coordinates(if possible)
0 个评论
采纳的回答
KSSV
2016-8-16
for meshing you can refer following links:
Coming about random holes....what shape the holes are in?
更多回答(1 个)
Image Analyst
2016-8-16
Create your surface as a matrix. Then create a mask of a bunch of circles using rand() to get locations and/.or radii and the circle FAQ. Then zero out the areas in the surface like this:
yourSurface(circleMask) = 0;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!