Closing out points in Matlab

2 ビュー (過去 30 日間)
Mr. NailGuy
Mr. NailGuy 2017 年 11 月 14 日
コメント済み: Star Strider 2017 年 11 月 14 日
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

採用された回答

Star Strider
Star Strider 2017 年 11 月 14 日
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 件のコメント
Mr. NailGuy
Mr. NailGuy 2017 年 11 月 14 日
Thanks! It worked well as what I needed.
Star Strider
Star Strider 2017 年 11 月 14 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by