Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- z = [-2:0.1:-1, 1:0.1:2];
- theta = [0:pi/18:2*pi];
- [Z, THETA] = meshgrid(z, theta);
- R = sqrt(Z.^2 - 1);
- X = R.*cos(THETA).*sqrt(10);
- Y = R.*sin(THETA);
- mesh(X, Y, Z);
- axis equal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement