For the machine element shown, locate the z coordinate of the center of gravity.

AFTER MIDTERM 2 3RD last week 3D plotting Create matrices for X and Y like this: [X,Y] = meshgrid(10:.5:10); The variables are then available to use in equations: R = sqrt(X.^2+Y.^2); Z = sin(R)./R; The “n” in the syntax for contour are for how many lines there are in a side view Command Window: >> [X,Y] = meshgrid(10:.5:10); >> R = sqrt(X.^2+Y.^2); >> Z = sin(R)./R; >> surf(Z) Curve Fitting Calculate the line of best fit for the points: (5,9) (4,7) (3,5) (2,4) (1,2) Data To Fit