Question: (1) Write a MATLAB script to find area using the Simpson's 3/8 rule. The code should perform all checks on the number of data

 (1) Write a MATLAB script to find area using the Simpson's 3/8  

(1) Write a MATLAB script to find area using the Simpson's 3/8 rule. The code should perform all checks on the number of data points required for application of the rule assuming equally spaced data. Exit the code and issue appropriate warnings when a rule is violated. The formula of the Composite Simpson's 3/8 Rule is (2) (3) f(x)dx 22 3h 8 772 m 1 (x0) +3 (f(x32) + (xx1)) + 2 f(x3) + (x3m) You will have to change the index in the above formula to be compatibe with MATLAB. Use the code to find area of the following function between x = -1.2 and x = 0.6 using a step size of 0.2. f(x) = x + 3x+x+1 Execue the code when one or more rules related to the numbers of data points are violated. Submit livescript mlx and pdf.

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 Programming Questions!