I am new to matlab recently, can you help me plot function cos(x) + cos(y) + cos(z) = c ?

Antworten (2)

Torsten
Torsten am 19 Okt. 2022
Bearbeitet: Torsten am 19 Okt. 2022

1 Stimme

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 am 19 Okt. 2022
Bearbeitet: Sam Chak am 19 Okt. 2022

0 Stimmen

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

Gefragt:

am 19 Okt. 2022

Kommentiert:

am 19 Okt. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by