Advertisement
plukran

Untitled

May 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.18 KB | None | 0 0
  1.  r=[0:0.1: 1]
  2.  THETA=[0:pi/18: 2*pi]
  3.  [R ,T]= meshgrid(r,THETA);
  4.  X=R.*cos(T);
  5.  Y=R.*sin(T);
  6.  Z=sqrt(1-R.^2).*sqrt(10);
  7.  mesh(X,Y,Z);
  8.  hold on
  9.  mesh(X,Y,-Z);
  10.  axis equal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement