Effacer les filtres
Effacer les filtres

I want to take time derivative of the function

1 vue (au cours des 30 derniers jours)
Haseeb Hashim
Haseeb Hashim le 29 Mar 2022
Modifié(e) : Walter Roberson le 15 Août 2022
syms theta(t)
theta2 = 0:0.001:2*pi;
r_x = 11.6;
r_y = 4.3;
r2 = 3.5;
omega2 = 17; % Given in RPM
omega2 = omega2*2*pi/60; % In rad/s
link3_linear = sqrt((r_x - r2*cos(theta)).^2 + (r_y - r2*sin(theta).^2));
dr3 = diff(link3_linear,t,1);
Now I have this code but how can we get the numerical answer by substituting for theta dot which comes as a result of the derivative with time 3 we can use the subs function but what are we substituting for or what would be the theta dot interpretation in MATLAB
I hope you understand my question
I just want the velocity of link3_linear by taking it sderivative and then substituting the angular velocity theta dot in the resulting derivative

Réponse acceptée

Torsten
Torsten le 29 Mar 2022
Modifié(e) : Torsten le 29 Mar 2022
link3_linear = sqrt((r_x - r2*cos(theta)).^2 + (r_y - r2*sin(theta).^2))
d_link3_linear_dt = diff(link3_linear,t)
d_theta_dt = diff(theta,t)
d_link3_linear_dt_subs_d_theta_dt = subs(d_link3_linear_dt,d_theta_dt,1)
  1 commentaire
Haseeb Hashim
Haseeb Hashim le 29 Mar 2022
So MATLAB stores theta_dot in form of diff(theta,t) as theta is a function of time
Understood. Wonderful @Torsten thanks man I was stuck here for a long time, Now I can complete my assignment on time thankss again man

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by