How to generate random holes in a 2D surface?
조회 수: 2 (최근 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!