フィルターのクリア

Cannot find the derivative of a function in terms of time

1 回表示 (過去 30 日間)
Spulber Alexandru
Spulber Alexandru 2022 年 12 月 24 日
コメント済み: Sulaymon Eshkabilov 2022 年 12 月 24 日
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) = 
  2 件のコメント
Spulber Alexandru
Spulber Alexandru 2022 年 12 月 24 日
Thank you very much.
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 12 月 24 日
Most welcome! It is my pleasure! Merry Christmas!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by