Angular Acceleration differentation w.r.t to time
13 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I want to derivate my simple function w.r.t time to get the acceleration and therefore I use the diff syntax.
I define my variable with q=omega*t but then omega the angular speed is constant.
If I derivate my equation twice with respect to time, I don´t have an angular_acceleration in my acceleration equation. The analytical equation of the acceleration should be f_dot_dot = cos(omega*t)*angular_acceleration - sin(omega*t)*omega^2.
What can I do to get an angular_acceleration?
t = 0:0.01:2*pi; % Time Interval
omega = 2; % Angular speed
q = omega*t; % Angular q
f = sin(q); % Function
f_dot = diff(f)./diff(t); % First derivative w.r.t
f_dot = [f_dot, NaN]; % Vector has the same length as at the beginning
f_dot_dot = diff(f_dot)./diff(t); % Second derivative w.r.t
Best regards
Matthias
4 个评论
darova
2019-4-26
If the velocity is a constant and acceleration is a change of velocity? How can you have acceleration?
回答(1 个)
SHABNUR MANSURI
2021-4-29
t = 0:0.01:2*pi; % Time Interval
omega = 2; % Angular speed
q = omega*t; % Angular q
f = sin(q); % Function
f_dot = diff(f)./diff(t); % First derivative w.r.t
f_dot = [f_dot, NaN]; % Vector has the same length as at the beginning
f_dot_dot = diff(f_dot)./diff(t); % Second derivative w.r.t
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!