037 Matlab subplot
subplot
x=-3:0.25:3;
y=-3:0.25:3;
[X,Y]=meshgrid(x,y);
Z=1.8.^(-1.5*sqrt(X.^2+Y.^2)).*cos(0.5*Y).*sin(X);
y=-3:0.25:3;
[X,Y]=meshgrid(x,y);
Z=1.8.^(-1.5*sqrt(X.^2+Y.^2)).*cos(0.5*Y).*sin(X);
subplot(1,2,1); mesh(X,Y,Z); xlabel('x'); ylabel('y');zlabel('z');
subplot(1,2,2); surf(X,Y,Z); xlabel('x'); ylabel('y');zlabel('z');i
subplot(1,2,2); surf(X,Y,Z); xlabel('x'); ylabel('y');zlabel('z');i
댓글
댓글 쓰기