![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/929109/image.png)
How to draw square plot in matlab?
232 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?
0 Commenti
Risposta accettata
Sam Chak
il 16 Mar 2022
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/929109/image.png)
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Subplots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!