Filter löschen
Filter löschen

how to give initial condition as array in ode45

4 Ansichten (letzte 30 Tage)
abhijit kulkarni
abhijit kulkarni am 29 Apr. 2014
Kommentiert: Jan am 20 Feb. 2017
I want to enter initial condition of 6x6 matrix in ode45.
How to do that? Any idea.
Please help
  2 Kommentare
DIP
DIP am 20 Feb. 2017
Sir, how do i solve an ode with an array , using ode45? ODE is udY/dx=P, Y,P are arrays.
Jan
Jan am 20 Feb. 2017
@DIP: Please do not attach a new question to an existing thread. Thanks.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Star Strider
Star Strider am 29 Apr. 2014
The ode45 initial conditions have to be a vector.
You have my interest, though. Why do you want them to be a matrix?
  10 Kommentare
abhijit kulkarni
abhijit kulkarni am 29 Apr. 2014
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 am 29 Apr. 2014
My pleasure!
I am happy it worked.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by