I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?

 Akzeptierte Antwort

Sam Chak
Sam Chak am 16 Mär. 2022

2 Stimmen

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 Kommentar

Nilanshu Mahant
Nilanshu Mahant am 19 Mär. 2022
Hello @sam chak
Thanks. Axis square is command which I’m not familiar and I found before 2 days thanks..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Gefragt:

am 16 Mär. 2022

Beantwortet:

am 29 Mai 2024

Community Treasure Hunt

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

Start Hunting!

Translated by