フィルターのクリア

solving a differential equation coupling together in matrix and vector form with ode45

1 回表示 (過去 30 日間)
roya afshar
roya afshar 2018 年 12 月 6 日
編集済み: roya afshar 2018 年 12 月 6 日
I have two problem:
1) I used two functions for solving a set of equation not in matrix or vector form but like
[x(2);3+x(4)+x(3);x(4);....................]
then [t,x] = ode45(@(t,x) lili(t,x),tspan,x0);
now I need the vector of dx=[x(2) x(4) x(6)]
but it doesnt return this vector.
2) i want to solve equation like this D2y=d2x+cross(m,n)
its clear cross product is in matrix form
how could i solve matrix form of differential equation?
especially initial values is a vector

回答 (0 件)

カテゴリ

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