Derivative of the function

2 visualizaciones (últimos 30 días)
Maros Maros
Maros Maros el 23 de Nov. de 2011
Hi all, I have question about derivation of function. I have function f=x^2(t)+u(t) and need derivation through t, not x or u. In which way it is possible to solve by Matlab ? ode or myfun function ? Or an easier way ? (I am solving variance method)
Thanks

Respuestas (2)

Wayne King
Wayne King el 23 de Nov. de 2011
syms x t
u = 3*cos(t);
diff(x^(2*t)+u,t)

Jan
Jan el 23 de Nov. de 2011
Do you look for a symbolical or numerical solution? For a numerical solution, do you want a rough discrete estimation as by gradient or a more expensive adaptive method like e.g.:
  1 comentario
Maros Maros
Maros Maros el 23 de Nov. de 2011
Thanks,I need solve it numerical, partial derivation and it looks be very helpful.
I am going to check it.
Thank you very much

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by