Find of primitive function using ODE45??

1 回表示 (過去 30 日間)
ReneHBK
ReneHBK 2015 年 9 月 21 日
回答済み: Walter Roberson 2015 年 9 月 21 日
Hello: I've a question... If I have a vector's know and I want calculate your primitive function used ODE45, for example: I know: a=[......] and a vector of time : t=[......] but, I need know v from the differential equation dv/dt = a(t); When I built the code using ODE45, but I get an error. Could they a help me for do the code??

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 21 日
I am having difficulty understanding your situation. Do you have a formula, or do you have a bunch of times and measurements of the derivative at the times? If that is the case then you should be using trapz() or cumtrapz().
I do not know what a "primitive function" is in this context? You cannot get a symbolic formula out of ode45.

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by