1. Math
  2. Advanced Math
  3. 1202 inputs none outputs xcentrvid the numerical approximate of the...

Question: 1202 inputs none outputs xcentrvid the numerical approximate of the...

Question details

12:02 Inputs: None Outputs: xCentrvid: The numerical approximate of the x-coordinale of lhe centrid of the area Process: 1. Evaluate the integral of f(x) = 3.39x2-3.38 belween x -0 and x-3 by applying MATI.ABs integral function. 2. Evaluate the integral ofx*f(x)-X(3.39x- belween x - 0 and x - 3 by applying MATLAPs integral function. 3. Evaluatc xcentroid by dividing your solution from part 2 by your solution from par 1 Function Template: function xcentroi: centroid() %INERT COOC rid Submilled ile function xCentroid centroid) TNSFRT CODF

12:02 Overview: In this exerise, vou wrill create a function which can numcrically approximate the x coordinate of the centroid of an area. The area is defined as lhe area under x)- 3.59x5.38 bctwccn x-0 andx 3, A centroid is the geometric cenre of a shape lhe x coordinal llie centroid of an area given the area is defined s the area hetween a function, fix), and thc x-axis, is thc integral of xfx) divided by the integral of f(x). This is under the assumplion thal f(x) duesn cross the x-axis. In this exercise, you will be approximating thc intcgrals with MMATLABs integral function Inputs: None Outputs: xCenruid: The numerical approximate of the x-coordinale of lhe centroid of he area Process: 1. Evaluate the integral of f(x) 3.39x- - 3.38 MATI.ABs integral function. 2. Evaluate the integral of X*f(x)-x(3.39%-- en x 0 nd x -3 by applying 5.38) belx 0 and x-3 by applying

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution