
How to draw square plot in matlab?
70 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nilanshu Mahant
le 16 Mar 2022
Réponse apportée : Kazi
le 29 Mai 2024
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?
0 commentaires
Réponse acceptée
Sam Chak
le 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:

Plus de réponses (1)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!