plotting concentric circles using contour
29 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Randy Chen
le 26 Oct 2020
Commenté : Star Strider
le 27 Oct 2020
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 commentaires
Réponse acceptée
Star Strider
le 26 Oct 2020
axis('equal') % Function Expression
or:
axis equal % Command Expression
.
5 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Contour Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!