Posted by : Unknown 31 Okt 2013


[X,Y] = meshgrid(-1:.2:2,-2:.1:1);
Z = X.*Y.*exp(-X.^2-Y.^2);
surf(X,Y,Z)

x = -2 : 0.1 : 2; y = -2 : 0.1 : 2;
[X,Y] = meshgrid(x,y); Z = X.*Y.*exp(-X.^2-Y.^2);
surf(X,Y,Z);

x = 1:4; y = 1:8; [X,Y] = meshgrid(x,y); Z = sqrt(X.^2 + Y.^2);
colormap(hsv); surf(Z); xlabel('x'); ylabel('y');

 [X,Y]=meshgrid(-5:0.1:5);
Z=log(exp(X)+exp(Y));
surf(X,Y,Z);

[x,y]=meshgrid(-2:.2:2);
z= 1-(x.^2+y.^2)/4;
surf(x,y,z)

[x,y] = meshgrid ( -5:0.2:5, -5:0.2:5 );
        z = 9 * x.^2 + 16 * y.^2 - 144;
surf(x,y,z)


x=0:4; y=0:.5:3;
[X,Y]=meshgrid(x,y);
Z=3*X-2*Y;
surf(X,Y,Z)

[X,Y]=meshgrid(-2:.1:2,-1:.1:1);
Z=(X.^2).*Y-2*Y;
surf(X,Y,Z)

[X,Y]=meshgrid(-1:.1:1);
Z=X.*Y./sqrt(X.^2+Y.^2);
surf(X,Y,Z)

[X,Y]=meshgrid(-1:.1:1);
Z=X.^2-Y.^2;
surf(X,Y,Z)

[X,Y]=meshgrid(-2:.1:2,-1:.1:1);
Z=X.^3-3*X-2*Y.^2;
surf(X,Y,Z)

One Response so far.

  1. kakak anak mercu ya?
    kadang masih suka bingung cara bikin persamaannya, bisa bagi triknya gak kak?

Diberdayakan oleh Blogger.
Welcome to My Blog

Labels

Blogger templates

Follow Me !

Pengikut

- Copyright © MEKA TRONIKA -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -