![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/929109/image.png)
How to draw square plot in matlab?
250 ビュー (過去 30 日間)
古いコメントを表示
I want to draw individual and subplots in square dimenstion. Is there any command which I can use to get a square plot?
0 件のコメント
採用された回答
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/929109/image.png)
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!