Borrar filtros
Borrar filtros

How can I plot circles of different diameters within a square?

1 visualización (últimos 30 días)
I need help to create code which will generate circles of different diameters within a square geometry. The circles cannot overlap. I am an amateur at using Matlab and any ideas will be greatly appreciated.

Respuesta aceptada

Kevin Claytor
Kevin Claytor el 17 de Jul. de 2012
  3 comentarios
Kevin Claytor
Kevin Claytor el 17 de Jul. de 2012
This error often occurs when functions are used as scripts. You'll want to save the function as a .m file with the same name (growbubbles.m), then you call it from the command window / your scripts with;
ptrads = growbubbles(ptsIn)
That is, you don't need the 'function' keyword when calling functions from the command window / scripts. It is used to declare a .m file as a function rather than a script.
Neysa
Neysa el 19 de Jul. de 2012
thank you very much!! i got it to work. Could you please explain what is the distance map? What exactly does the distance map give you? Is it the distances between the randomly generated points?

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by