How to solve ODE function given as array of numbers

1 回表示 (過去 30 日間)
Camille
Camille 2013 年 3 月 28 日
コメント済み: Jan 2017 年 2 月 20 日
I have differential equation dx/dt=f(x) as an array of numbers say x=[0 0.785398163397448,1.57079632679490,3.14159265358979,2.35619449019235,6.28318530717959] and f(x)=[0,0.707106781186548,1,1.22464679914735e-16,0.707106781186548,-2.44929359829471e-16] (note: x is a function of time and f(x) is a periodic function). How can I solve this ODE without going through fitting f(x) first? I am looking for any matlab technique that can be used to do such kind of even for complex array of numbers.
  2 件のコメント
DIP
DIP 2017 年 2 月 20 日
Hi! I have the same issue, do you have the solution ?
Jan
Jan 2017 年 2 月 20 日
@DIP: Please open a new thread and explain your problem with details.

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

回答 (1 件)

Jan
Jan 2013 年 3 月 28 日
Do you mean trapz?

カテゴリ

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