필터 지우기
필터 지우기

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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by