How to generate random holes in a 2D surface?

4 visualizaciones (últimos 30 días)
DINESH CHANDRA
DINESH CHANDRA el 16 de Ag. de 2016
Comentada: DINESH CHANDRA el 16 de Ag. de 2016
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)

Respuesta aceptada

KSSV
KSSV el 16 de Ag. de 2016
  1 comentario
DINESH CHANDRA
DINESH CHANDRA el 16 de Ag. de 2016
Thanks for responding.......... Holes are in the shape of circles....

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 16 de Ag. de 2016
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;

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by