How do you plot a surface in matlab?

4 次查看(过去 30 天)
I was trying the whole night to plot the surface described by x^2-y^2-z^2=1.....This program is sooo hard to use!! could anyone give a solution? Thanks a lot.

采纳的回答

Youssef  Khmou
Youssef Khmou 2014-11-2
There several tutorials that illustrate how to make a graph of f(x,y), here is simple example :
[x,y]=meshgrid(-1:0.1:1);
z=sqrt(1+x.^2+y.^2);
surf(x,y,abs(z))
  3 个评论
Youssef  Khmou
Youssef Khmou 2014-11-2
remove the absolute value >>surf(x,y,z). start by learning simple tutorials.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by