1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| x = -0.01:0.00001:0.01;
y = -0.01:0.00001:0.01;
[X,Y] = meshgrid (x,y);
Z = Y.^2+X.^2;
figure
s(1) = subplot(221);
[C,h] = contour(X(1001:end,1:1001),Y(1001:end,1:1001),Z(1001:end,1:1001),10);
s(2) = subplot(222);
[C,h] = contour(X(1001:end,1001:end),Y(1001:end,1001:end),Z(1001:end,1001:end),10);
s(3) = subplot(223);
[C,h] = contour(X(1:1001,1:1001),Y(1:1001,1:1001),Z(1:1001,1:1001),10);
s(4) = subplot(224);
[C,h] = contour(X(1:1001,1001:end),Y(1:1001,1001:end),Z(1:1001,1001:end),10);
axis(s, 'equal') |
Partager