How do you plot a surface in matlab?
1 回表示 (過去 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.
0 件のコメント
採用された回答
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
2014 年 11 月 2 日
remove the absolute value >>surf(x,y,z). start by learning simple tutorials.
その他の回答 (0 件)
参考
カテゴリ
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!