main.m220 chars13 lines
This code defines a grid of points (x,y) using meshgrid
, computes the value of z using the given expression, and then plots the result using surf
. The resulting plot shows the surface defined by z as a function of x and y.
gistlibby LogSnag