derivative of a function of two variables
100 views (last 30 days)
How can I get such a derivative in Matlab-Symbolic Toolbox ?
Differentiation according to two variables q1 and q2.
There is only this alternative?
Thank you very much
Kaijie Cui on 21 Feb 2013
To get a numerical difference (symmetric difference), you calculate (f(x+dx)-f(x-dx))/(2*dx)
or "gradient", "polyder" (calculates the derivative of a polynomial) functions. Also a function "derivest" could also give numerical differentiation.
More Answers (1)
Babak on 21 Feb 2013
y = L1*cos(q1)+L2*cos(q2)
Do you want to take the derivative with respect to both independent parameters? if so, do this:
dy_over_dq1_dq2 = diff(diff(y,q1),q2)