matlab grid problem?

4 ビュー (過去 30 日間)
Hyeon Soo Lee
Hyeon Soo Lee 2023 年 12 月 18 日
編集済み: DGM 2023 年 12 月 18 日
I was trying to make a circle(not ellipse) with a NURBS curve function. I put the neccessary values like this
(order = 3, weighting factor [1 1/√2 1 1/√2 1 1/√2 1 1/√2 1], control points are red dots)
As you can see the image above, the (supposed to be) circle looks like a ellipse and I figured out that the length of the x axis of the grid square is longer than the y axis of it. How can I adjust this so I can make it looks like a circle?

採用された回答

DGM
DGM 2023 年 12 月 18 日
編集済み: DGM 2023 年 12 月 18 日
To set the data aspect ratio to unity set
axis equal
You can also check out the other options for the function axis()
  1 件のコメント
Hyeon Soo Lee
Hyeon Soo Lee 2023 年 12 月 18 日
It works! Thanks a lot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by