Z = 2X3 + 4Y2 + 7 +sinX3 + Y2
clc;
x = -5:0.05:5;
y = -5:0.05:5;
[X, Y] = meshgrid(x, y);
Z = 2*X.^3 + 4*Y.^2 + 7*sin(x).^3 + Y.^2;
figure()
surf(X,Y,Z)
figure()
mesh(X,Y,Z)
%surfplot
%meshplot
Get Answers For Free
Most questions answered within 1 hours.