Suppose I want to plot the function
% f(x,y) = x.*y by saying:
[x,y] = meshgrid (-2:2:2);z = x.*y;surf(x,y,z)
But what if I want the x and y values also to fulfill the equation x + y <= 1 ?
3dMATLABplotting
% f(x,y) = x.*y by saying:
[x,y] = meshgrid (-2:2:2);z = x.*y;surf(x,y,z)
Best Answer