Derivate an expression with time

2 visualizaciones (últimos 30 días)
Anis Frej
Anis Frej el 18 de Abr. de 2020
Comentada: Anis Frej el 18 de Abr. de 2020
Good Morning,
My problem is I have an equation depends on theta and I don't have an expression of theta (which is the variable in the equation), and theta depends on t and i like derivate my equation with t.
For example my equation is as follows : f (t) = a * cos (theta)
Where theta = theta (t) And I would like to have a result in this style : f '(t) = - a * (theta)' * sin(theta)
Thank you.

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Abr. de 2020
syms a theta(t) theta_prime f_prime
f(t) = a * cos(theta);
dtheta = diff(theta,t);
df = diff(f,t);
f_prime == subs(df, dtheta, theta_prime)

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by