How do you plot a surface in matlab?

1 visualización (últimos 30 días)
Yue Li
Yue Li el 2 de Nov. de 2014
Comentada: Yue Li el 2 de Nov. de 2014
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.

Respuesta aceptada

Youssef  Khmou
Youssef Khmou el 2 de Nov. de 2014
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 comentarios
Youssef  Khmou
Youssef Khmou el 2 de Nov. de 2014
remove the absolute value >>surf(x,y,z). start by learning simple tutorials.
Yue Li
Yue Li el 2 de Nov. de 2014
Thanks a lot!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by