How can I plot multiple squares?
Mostrar comentarios más antiguos

I need plot, basically what is shown above, and for the life of me I cannot figure out what to do this with. I have a circle of radius 2, and I am creating a mesh of the interior, by using squares. I check each corner of the square to see if it is contained or not, and if I need to make it smaller I do and continue from there.
My problem is, what functions could I use for this? I need to (at the end) display something similar to this:

Although, I need to convert all of the squares into triangles, and that is a whole other issue.
How would I go about storing the coordinates and graphing them? I'm extremely new to MATLAB, but I have spent about 4 hours looking for something to work, and I honestly am at a loss.
3 comentarios
Joseph Cheng
el 27 de Mzo. de 2014
whats the base unit of the square? you say you create a mesh of what sized squares?
Christyn Phillippi
el 27 de Mzo. de 2014
Joseph Cheng
el 27 de Mzo. de 2014
I think i see, Before i was thinking you started with a base square unit that just fit within the circle. Then pack the next largest square you can and go smaller and smaller. Will get back with an method if i come up with one.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
