Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

apter 7; Use er-Defi ed ous wend 34. Write a user-defined function that determin

ID: 3822645 • Letter: A

Question

apter 7; Use er-Defi ed ous wend 34. Write a user-defined function that determines the coordinate y of the centroid of the U-shaped cross-sectional area shown in the figure. For the function name and arguments, use yc- cen- troidu w, h, t,d), where the input argu- ments w, h, t, and d, are the dimensions shown in the figure and the output argument yc is the i coordinate y Use the function to determine y for an area with w 10 in., h 1.75 in., and t 0.5 in 35. The area moment of inertia Ir, of a rectangle about the axis r, passing through its centroid is I bh The moment of inertia about an axis x that is parallel to x is given by +Ad where A is the area of the rectan gle, and d, is the distance between the two axes. ratio For the input argumen inductor in the function Write a plot of rithmic asks the 37. A ci IS S rat

Explanation / Answer

MatLab function:

function yc = centroidU(w,h,t,d)
a1 = 2*((h-d)*t);
a2 = w*d;

yc = (((h-d)/2)*a1 + (h-(d/2))*a2 )/(a1 + a2);

centroidU(10,7,0.5,1.75)

Output :

ans =  5.3173