what 's different between axis square and axis equal in matlab ?

426 ビュー (過去 30 日間)
Nguyen Trong Nhan
Nguyen Trong Nhan 2014 年 5 月 27 日
コメント済み: Muhammad Safdar 2020 年 11 月 23 日
when I plot or surf, what's different between axis square and axis equal ?

採用された回答

Mahdi
Mahdi 2014 年 5 月 27 日
From this page:
axis equal sets the aspect ratio so that the data units are the same in every direction. The aspect ratio of the x-, y-, and z-axis is adjusted automatically according to the range of data units in the x, y, and z directions.
axis square makes the current axes region square (or cubed when three-dimensional). This option adjusts the x-axis, y-axis, and z-axis so that they have equal lengths and adjusts the increments between data units accordingly.

その他の回答 (1 件)

Narin Deveci
Narin Deveci 2020 年 10 月 30 日
Do you know the formula to set your axes to be square?
  4 件のコメント
Walter Roberson
Walter Roberson 2020 年 10 月 30 日
axis square
is the command.
Muhammad Safdar
Muhammad Safdar 2020 年 11 月 23 日
Hi, I have a 3D plot, I set axis([-100 100 -80 120 -50 150]) followed by axis equal. That means I have equal range of data in all directions and figure should look like a cube but hight looks larger than bottom witdhs on my screen? why?

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

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by