plotting concentric circles using contour
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Randy Chen
il 26 Ott 2020
Commentato: Star Strider
il 27 Ott 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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/393073/image.jpeg)
0 Commenti
Risposta accettata
Star Strider
il 26 Ott 2020
axis('equal') % Function Expression
or:
axis equal % Command Expression
.
5 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Contour Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!