How do you plot a surface in matlab?

조회 수: 9 (최근 30일)
Yue Li
Yue Li 2014년 11월 2일
댓글: Yue Li 2014년 11월 2일
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.
Yue Li
Yue Li 2014년 11월 2일
Thanks a lot!

댓글을 달려면 로그인하십시오.

추가 답변 (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