Cannot find the derivative of a function in terms of time

2 次查看(过去 30 天)
So I have a function lets say B=a*cos(q), where a is a constant and q is an articulation angle.
Now to find the velocity I wrote diff(B,t), so it will differentiate it in terms of time, but it doesnt work, it results 0 , if I replace q with q(t) it returns an error because it thinks Im indexing.
How should I write this to calculate the derivative of B in terms of time ?

采纳的回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022-12-24
syms q(t) t a
diff(a*cos(q))
ans(t) = 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by