フィルターのクリア

How can I set an equal distance of 5 units between the red star points?

3 ビュー (過去 30 日間)
Zeinab Ahmadi93
Zeinab Ahmadi93 2017 年 7 月 2 日
コメント済み: Walter Roberson 2017 年 7 月 7 日
Hello everybody... I want to set an equal and fixed distance(5 units) between red star points in the whole figure(the three circles) in my attached code... How can I do it?? Please help me.Thanks in advance:)

採用された回答

Image Analyst
Image Analyst 2017 年 7 月 2 日
You can set up points at equal angles using code in the FAQ. http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F However if you want the angles to be such that the arc length between the points is exactly 5 then the first and last point, near 0 and 2*pi, may not have an arc length of 5 between them unless the circumference is a multiple of 5. So it won't work for any arbitrary radius. If a spacing of 5 for nearly all pairs of points except for one pair is good enough for you, then see the 5th code chunk in the FAQ.
  5 件のコメント
Image Analyst
Image Analyst 2017 年 7 月 7 日
The formula for a hexagon is not so simple as s=r*theta like it is for a circle. Sorry but I won't have time to help you with the trig formulas and if statements to do that.
Walter Roberson
Walter Roberson 2017 年 7 月 7 日
interparc() can interpolate along hexagons, provided it is given the vertices.

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 7 月 2 日
You cannot get equal distance of 5 units on the circumference of a circle unless the units are fractions of 2*pi. However if the units are fractions of 2*pi then you cannot get equal distances on the straight line that also has red markers.
  2 件のコメント
Zeinab Ahmadi93
Zeinab Ahmadi93 2017 年 7 月 2 日
Thanks for your reply dear Walter Roberson... But How did the writer of an article do it? This is the figure in that article:How can I change my code to generate an image like it because as you see the markers on the first circle are closer than others in my code.

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

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by