Advertisement
plukran

Untitled

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