Short Urgent Matlab Question Function Take Vector X Values Return Vector Slopes M Notice L Q37087917

SHORT AND URGENT MATLAB QUESTION!!!!

At the bottom of your script, write a function called Derivatives and this function should calculate the derivative of y(x)-x

Your function should take a vector of x values and return avector of the slopes, m. Notice that the length (m)= length(x)-1

At the top of your script file create an x vector over the range[-3,5] with 100 data points. Determine the corresponding y(x) andplot x vs y. Use your function to determine the derivative of y(x)using your created x vector. After using the function, create a newvector x1 of the first 99 elements

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.