![]() |
|
grafici avanzati: linee di livello e funzioni implicite
Alcuni esempi;
ezplot(@(x,y) abs(x)+abs(y)-1,500);
ezplot('x.^3+x.*y+y.^2-36',[-10 10 -10 10],500 );
ezplot('x.^3+x.*y+y.^2.*abs(x)-36',[-30 30 -30 30],3000 );
[X,Y]=meshgrid(-10:0.1:10);
f=X.^3 + X.*Y.^2 + Y.^2;
contour(X,Y,f,[36 36],'b');
xlabel('x');
ylabel('y');
title('x^3 + x y + y^2 = 36');
![]() |
|