Вопрос

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');

When I run the above code in octave, I am getting concentric elliptical figures in contour plots. I expected to be a concentric circle figures . What is wrong in this?

Это было полезно?

Решение

It is concentric circle figure. Add

axis equal

to see it more clearly.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top