Determine by direct integration the centroid of the area shown.

ENGR 121 B Lab Notes for 10/24/2016 Spencer Kociba ● scalarctneeds to have scalar.^vector ● vector(logical vector) ○ Will find every value for whom’s element equals 1 in the logical vector ● Looping repeats the action for every element in a vector ● Example of nested for loops ○ For m=1:3 ■ For n=-1:-1:-3 ● fprintf(‘m=%d, n=%d\n, m,n) ■ End ○ End ○ >> %Will give all combinations created by the for loop (9 in this one) ■ m=1, n=-1 ■ m=1, n=-2 ■ … ■ m=3, n=-3