Question: Problem 6 / MatlabGrader Develop a Matlab function myGaussQuad that calculates the integral of a function ( f ) from ( a
Problem MatlabGrader
Develop a Matlab function myGaussQuad that calculates the integral of a function f from a to b As input the function shall take the anonymous function f the integration bounds a and b and the number of Gauss points to be used m Your function must cover and point Gaussian quadrature. As output the function shall give the calculated integral I. Do not use the table given in the book for the location of the Gauss points or the weights, but instead use the table with exact values given in the lecture notes. If the function is called with an m value other than or the function shall execute Matlab's function error with an appropriate error message.
Use your function myGaussQuad to solve problem using and point Gaussian quadrature.
Required submission:
square well commented function source code submitted to Matlab Grader
printout of I for all methods
printout of script used to solve this problem in the Gradescope submission
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
