How to plot function f(x,y,z)=c ?
Mostrar comentarios más antiguos
I am new to matlab recently, can you help me plot function cos(x) + cos(y) + cos(z) = c ?
Respuestas (2)
c = pi/2;
f = @(x,y,z) cos(x) + cos(y) + cos(z) - c
fimplicit3(f,[-pi pi -pi pi -pi pi])
1 comentario
Sam Chak
el 19 de Oct. de 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')
Categorías
Más información sobre Surface and Mesh Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

