Closing out points in Matlab

3 visualizaciones (últimos 30 días)
Mr. NailGuy
Mr. NailGuy el 14 de Nov. de 2017
Comentada: Star Strider el 14 de Nov. de 2017
Hi everyone,
Does anybody knows how can I close out the points plotted around a circle in Matlab? See the attached figure. I just used a command line(x,y) to connect my points around but it doesn't close out. Is it because its not a perfect circle? Thanks

Respuesta aceptada

Star Strider
Star Strider el 14 de Nov. de 2017
It is not closing on its own because it needs help to close the curve.
Try this:
line([x x(1)],[y y(1)])
NOTE This is UNTESTED CODE. It should work.
  2 comentarios
Mr. NailGuy
Mr. NailGuy el 14 de Nov. de 2017
Thanks! It worked well as what I needed.
Star Strider
Star Strider el 14 de Nov. de 2017
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by