Question: 7. (15 points) Create a function function m-file that returns the difference between the passed function's maximum and minimum value given a range of the


7. (15 points) Create a function function m-file that returns the difference between the passed function's maximum and minimum value given a range of the independent variable. In addition, the function func- tion should generate a plot of the passed function for the provided range. Test your code with the following cases: (a) f(t) = 8e-0.25+ sin(t - 2) from t = 0 to t = 67. (b) g(x) = esin(1/x) from x = 0.01 to r = 2. (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
