Locate the centroid of the plane area shown.

ENGR 121 B Lecture Notes for 11/07/2016 Spencer Kociba ● Error thresholds ○ eps=2.2204e-16 ■ Maximum error threshold constant in MATLAB a−b ■ The relative erro[a] )must be less than eps to be considered not significantly different from each other ■ NOTE: 1+esp ≠ 1 even though ans=1.000 ● For loops are almost never necessary when performing a function for every element in a vector or matrix ● Vectorizing ○ Re-writing code using loops (traditional programming language) to vector and matrix operations in MATLAB ● Preallocating memory ○ Faster than dynamically growing the number of vector elements using a