Question: Please do all parts in MATLAB. do each part in a seperate block. Put function in a seperate file and comment on what each part

Please do all parts in MATLAB. do each part in a seperate block.
Put function in a seperate file and comment on what each part of the code does please and thank you I appreciate your help!
Part 1
-Write code that produces the plot below as closely as possible. Close counts. Hint: think 1 - exponential and some sort of trig function.
-For part 2-4, create a function that can perform a numerical integration over an interval given a function handle and a number of sub-intervals to use. It must have an input that specifiles the integration method as 'Trapezoid', 'MidPoint', or 'Simpson'. The function must generate a plot that clearly shows the sub-intervals being used e.i. showing the trapazoids, rectangles or polynomials.
Part 2
-Demostrate use of the function to calculate the integral of exp(x) from 0 to 3 using 20 intervals using the midpoint method.
Part 3:
-Demostrate use of the function to calcualte the integral of exp(x) from 0 to 3 using 20 intervals using the trapezoid method.
Part 4:
-Demostrate use of the function to calculate the integral of exp(x) from 0 to 3 using 20 intervals using the Simpson's rule method.
 Please do all parts in MATLAB. do each part in a

Thruster Stabilty ++++ ++++++++ - test 1 test 2 Signal (V) Time (s)

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!