フィルターのクリア

How to draw square plot in matlab?

250 ビュー (過去 30 日間)
Nilanshu Mahant
Nilanshu Mahant 2022 年 3 月 16 日
回答済み: Kazi 2024 年 5 月 29 日
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?

採用された回答

Sam Chak
Sam Chak 2022 年 3 月 16 日
Here is the basic to draw a square or any rectangular object. The rectangle function will pick a corner at (2, 3) and then draw a 5-by-5 square.
rectangle('Position',[2 3 5 5])
axis square
axis([0 10 0 10])
Result:
  1 件のコメント
Nilanshu Mahant
Nilanshu Mahant 2022 年 3 月 19 日
Hello @sam chak
Thanks. Axis square is command which I’m not familiar and I found before 2 days thanks..

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

その他の回答 (1 件)

Kazi
Kazi 2024 年 5 月 29 日
squre

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by