Question: ( MATLAB code II ) [ 1 0 points ] The trapezoidal rule may be used with data containing unequal segments. The below is the

(MATLAB code II)[10 points] The trapezoidal rule may be used with data containing unequal segments. The below is the formula for this case.
I=x0xnfn(x)dx=x0x1fn(x)dx+x1x2fn(x)dx+cdots+xn-1xnfn(x)dx
I=(x1-x0)f(x0)+f(x1)2+(x2-x1)f(x1)+f(x2)2+cdots
+(xn-xn-1)f(xn-1)+f(xn)2
The following is a MATLAB code for this numerical integration of f(x)=0.2+25x-200x2+675x3-900x4+400x5 when x=[00.120.220.320.360.40.440.540.640.70.8]. Fill in the blank [].
( MATLAB code II ) [ 1 0 points ] The trapezoidal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!