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개)

Torsten
Torsten 2022년 10월 19일
편집: Torsten 2022년 10월 19일

1 개 추천

c = pi/2;
f = @(x,y,z) cos(x) + cos(y) + cos(z) - c
f = function_handle with value:
@(x,y,z)cos(x)+cos(y)+cos(z)-c
fimplicit3(f,[-pi pi -pi pi -pi pi])
Sam Chak
Sam Chak 2022년 10월 19일
편집: Sam Chak 2022년 10월 19일

0 개 추천

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')

카테고리

질문:

2022년 10월 19일

댓글:

2022년 10월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by