I want to sketch one sheeted hyperboloid x^2-y^2+z^2=1 using meshgrid of MATLAB
3 次查看(过去 30 天)
显示 更早的评论
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/361060/image.png)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!