To plot a 3D surface of the function z=cos(x/y)*cos(y)+(y/10)-(x/5) in matlab, you would need to define a range of x and y values using meshgrid
and compute the corresponding z values. Then, you can plot the resulting surface using the surf
function.
Here's the code:
main.m292 chars15 lines
This should give you a 3D surface plot of the function.
gistlibby LogSnag