Write a MATLAB function that uses Simpson’s 1/3rd Rule to integratea 2D data array.
The function input will be a 2D data array.
Function must determine the length of the array and determineif Simpson’s 1/3 Rule can be used.
If Simpsons 1/3 Rule can be used, it will calculate and returnthe integral estimate. If it cannot be used it will return 0.Simpson’s 1/3 Rule Class Exercise: Rao Problem 8.3 Test your function with this data: 1.0000 Where “x” is the
OR
OR