フィルターのクリア

how to give initial condition as array in ode45

4 ビュー (過去 30 日間)
abhijit kulkarni
abhijit kulkarni 2014 年 4 月 29 日
コメント済み: Jan 2017 年 2 月 20 日
I want to enter initial condition of 6x6 matrix in ode45.
How to do that? Any idea.
Please help
  2 件のコメント
DIP
DIP 2017 年 2 月 20 日
Sir, how do i solve an ode with an array , using ode45? ODE is udY/dx=P, Y,P are arrays.
Jan
Jan 2017 年 2 月 20 日
@DIP: Please do not attach a new question to an existing thread. Thanks.

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

採用された回答

Star Strider
Star Strider 2014 年 4 月 29 日
The ode45 initial conditions have to be a vector.
You have my interest, though. Why do you want them to be a matrix?
  10 件のコメント
abhijit kulkarni
abhijit kulkarni 2014 年 4 月 29 日
Respected Star Thank you very much!
I thought I took much time of your rest.
Well I have Pdot equation as one of the two more differential equations.
What I did is that as you said : I put initial condition of 6 variables (diagonal) of P initial matrix. And then inside program, I equated them in for loop with eye(y).
Any way your help and attitude to help is simply great.
In gratitude Abhijit
Star Strider
Star Strider 2014 年 4 月 29 日
My pleasure!
I am happy it worked.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by