Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. x= -1:0.05:1;
  2. y=0:0.05:1;
  3. [X,Y]=meshgrid(x,y);
  4. z=4.*sin(2.*pi.*X).*cos(1.5.*pi.*Y).*(1-X.^2).*Y(1-Y);
  5. >> figure
  6. >> subplot(2,2,1),plot3(X,Y,z),title('Plot3')
  7. >> subplot(2,2,2),mesh(X,Y,z),title('mesh')
  8. >> subplot(2,2,3),surf(X,Y,z),title('surf')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement