Question: Matlab Question. Please explain well. We would like to determine the approximate value c)dx using 'n' rectangles (a) Write a MATLAB function defined below: function

Matlab Question. Please explain well.
Matlab Question. Please explain well. We would like to determine the approximate

We would like to determine the approximate value c)dx using 'n' rectangles (a) Write a MATLAB function defined below: function (appInteg]=my IntegWithFuncHandle (func, limVec, n) Function file: myIntegWithFuncHandle.m Purpose: % Calculate approximate integral of function specified in func % between the lower/upper limits specified in limVec using n % rectangles Record of revisions (Date | Programmer | Change): Date Name | Original program Inputs: % func - function handle defined as [fx, dfx]=func_name (x) for calculating f(x) and f'(x) & limvec - (1x2) vector containing limits of integral; limVec(1) is lower limit and limvec (2) is upper limit. n (1x1) number of rectangles $outputs: $appInteg - (1x1) approximate value of integral (b) Using function handles to myri and myE2 as inputs for myIntegwithFuncHandle, calculate the approximate value of ( f(x)dx for f(x)=x*e*?* and f(x) = 7 sin(x)e~* - 1 using 10, 100 and 1000 rectangles

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