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.

 Akzeptierte Antwort

Youssef  Khmou
Youssef Khmou am 2 Nov. 2014

0 Stimmen

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 Kommentare

Yue Li
Yue Li am 2 Nov. 2014
Isn't this problematic? Because you are really missing the negative part of this graph....Also, may I ask how did you learn all this? I spent all night, and never made any progress of such....
Youssef  Khmou
Youssef Khmou am 2 Nov. 2014
remove the absolute value >>surf(x,y,z). start by learning simple tutorials.
Yue Li
Yue Li am 2 Nov. 2014
Thanks a lot!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by