How to draw square plot in matlab?

429 次查看(过去 30 天)
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

Community Treasure Hunt

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

Start Hunting!

Translated by