문제

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