Show all code please In this exercise, you will generate a 3-dimensional mesh or
ID: 3349690 • Letter: S
Question
Show all code please
In this exercise, you will generate a 3-dimensional mesh or surface plot of the function: defined over the rectangular domain in the xy-plane given by -3sx33, -4sy s4. Instructions: * Create a MATLAB script m-file n . Build one-dimensional arrays representing variables x and y and then use the meshgrid armed exercises m with a comment header that includes a brief description and vour name command to generate corresponding matrices Compute a matrix representing the z-values returned by the function over the rectangular grid of (x,y) points. Use element-by-element operations as appropriate. Use the meshe to creatc a 3-dimensional plot with contours. uth angle of 45 degrees and an elevation angle to 15 degrees. Label all 3 coordinate axes with a fontsize of 14. .Explanation / Answer
x=-3:0.1:3;
y=-4:0.1:4;
[X,Y]=meshgrid(x,y);
Z=((Y+3).^2)+(1.5*X.^2)-(X.^2.*Y);
meshc(X,Y,Z) xlabel('X') ylabel('Y') zlabel('Z') az = 45;
el = 15; view(az, el);