I want to sketch one sheeted hyperboloid x^2-y^2+z^2=1 using meshgrid of MATLAB

13 vues (au cours des 30 derniers jours)
수정 이
수정 이 le 16 Sep 2020
Réponse apportée : KSSV le 16 Sep 2020
my code looks like this.
u=linspace(-10,10,50);
v=linspace(0,2*pi,50);
[u,v]=meshgrid(u,v);
x=cosh(u).*cos(v);
y=sinh(u);
z=cosh(u).*sin(v)
surf(x,y,z)
but it looks like this. What should I fix?

Réponses (1)

KSSV
KSSV le 16 Sep 2020

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by