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

 Accepted Answer

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 Comments

Thanks! It worked well as what I needed.
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Tags

Community Treasure Hunt

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

Start Hunting!