倍频程等值线图

GoT*_*GoT 2 matlab octave contour matlab-figure

x = linspace(-10, 10, 100);
y = linspace(-10, 10, 100);

[X,Y] = meshgrid(x, y);

t2= X.^2 + (Y.^2);

contour(x,y,t2,'showtext','on');
Run Code Online (Sandbox Code Playgroud)

当我以八度运行上述代码时,我在等高线图中得到同心椭圆形图形。我预计是一个同心圆的数字。这有什么问题吗?

Chu*_*Nan 5

是同心圆图形。添加

axis equal
Run Code Online (Sandbox Code Playgroud)

以便更清楚地看到它。