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!

