Question: MATLAB Problem: Write a function function called myslope that will receive a handle of a function as the first input argument, and a vector of
MATLAB Problem:

Write a function function called myslope that will receive a handle of a function as the first input argument, and a vector of x-coordinates as the second input argument. Your function function myslope should return the values of the first derivative of the input function evaluated at the specified x-coordinates. The first derivate of a single-argument function can be numerically evaluated as: f'(x) = f(x + Delta x) - f(x)/Deltax where Delta x is an infinitesimally small value (you may take Delta x to be 1e-6)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
