How to plot a shape away from the x and y axis?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to plot shapes but I don't want them to be on the axis (I don't want to remove the axis though).
Here is my program: h=input('What shape do you want?:','s'); a=input('The length of a side is (m):'); if strcmp(h, 'square') plot([0 0 a a 0],[0 a a 0 0],'r','LineWidth',3) end
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!