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?
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:
更多回答(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!