MATLAB: How to plot cos(x) + cos(y) + cos(z) = 0

3d plotscontoursurface

How can I plot
cos(x) + cos(y) + cos(z) = 0
In 3D plane (the expected 3D model is attached )
and I also want to know how to put my own contour on the surface

Best Answer

Try fimplicit3()
fimplicit3(@(x,y,z) cos(x) + cos(y) + cos(z))