plotting concentric circles using contour
조회 수: 35 (최근 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!