How to plot function f(x,y,z)=c ?
Afficher commentaires plus anciens
I am new to matlab recently, can you help me plot function cos(x) + cos(y) + cos(z) = c ?
Réponses (2)
c = pi/2;
f = @(x,y,z) cos(x) + cos(y) + cos(z) - c
fimplicit3(f,[-pi pi -pi pi -pi pi])
1 commentaire
Sam Chak
le 19 Oct 2022
👍
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')
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

