plotting concentric circles using contour
12 次查看(过去 30 天)
显示 更早的评论
I'm trying to plot a few concentric circles with the following codes, but what I get is an ellipse, i don't know why:
[x,y] = meshgrid(-3:0.1:3,-3:0.1:3);
z = x.^2+y.^2;
contour(x,y,z)
0 个评论
采纳的回答
Star Strider
2020-10-26
axis('equal') % Function Expression
or:
axis equal % Command Expression
.
5 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!