how to take the derivative of the function saved from curve fitting tool
12 vues (au cours des 30 derniers jours)
I want to take the derivative of the following function after extracting the curve fitted from cftool. I have saved the curve fitted curve to my workspace.
I want to know how to get the highest slope (derivate) of the curve with respect to x-data ?
Simon Allosserie le 1 Mar 2021
Modifié(e) : Simon Allosserie le 1 Mar 2021
If you have the values of your fitted curve saved, you can calculate the first derivative by using the gradient function: https://nl.mathworks.com/help/matlab/ref/gradient.html For example
fx = gradient(x) %calculate first derivative of the vector x containing your curve data.
Hope this works :)