Question: I'm having a problem trying to set up a Matlab function called myderivative . Here's the homework question related to this: Write a Matlab function

I'm having a problem trying to set up a Matlab function called myderivative. Here's the homework question related to this:

Write a Matlab function called myderivative that inputs a number x and outputs the derivative of the function f(x) = (x-1)^2.

Take a good look and tell me what I'm doing wrong and how I should fix it. Specify what code I should type under part b) and what code to put under function definitions.

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!