plotting concentric circles using contour
12 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Star Strider
on 26 Oct 2020
axis('equal') % Function Expression
or:
axis equal % Command Expression
.
5 Comments
More Answers (0)
See Also
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!