How do I take the derivative of my plot?
686 views (last 30 days)
More Answers (1)
Shaun VanWeelden on 19 Apr 2013
Call polyfit to generate your polynomial (if you don't already have a polynomial)
Call polyder to get derivative of your fitted line
Call polyval with your original X values to get the Y values of your derivative and plot that with hold on so it doesn't erase your original plot