Question

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?

Was it helpful?

Solution

It is concentric circle figure. Add

axis equal

to see it more clearly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top