How to plot function f(x,y,z)=c ?
古いコメントを表示
I am new to matlab recently, can you help me plot function cos(x) + cos(y) + cos(z) = c ?
回答 (2 件)
c = pi/2;
f = @(x,y,z) cos(x) + cos(y) + cos(z) - c
fimplicit3(f,[-pi pi -pi pi -pi pi])
Not how it looks. Are you expecting something like this?
c = pi/2;
z = @(x, y) acos(c - cos(x) + cos(y));
fsurf(z, [-pi pi -pi pi]), xlabel('x'), ylabel('y'), zlabel('z')
カテゴリ
ヘルプ センター および 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!

