Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Solving coupled ODE's by ode45

조회 수: 3 (최근 30일)
sara kian
sara kian 2013년 3월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I am trying to solve a set of 4 coupled equations but I don't know which initial condition I should use? would you please help me?
Maybe I have to define initial condition in a not-zero position,so which command I have to use?
Thanks,
Sara
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 9일
Where are your equations?
sara kian
sara kian 2013년 3월 9일
Hi; I attached equations,I have to define boundary condition for A,B
Regards, Sara
dx_dt(1)=((-1j*26.46*10^7)*exp(-j*1.252*(10^7)*t))*x(2)+((-1j*7.686*10^7)*exp(-j*1.252*(10^7)*t))*x(4);
dx_dt(3)=((-1j*7.686*10^7)*exp(-j*1.252*(10^7)*t))*x(2)+((-1j*36.54*10^7)*exp(-j*1.252*(10^7)*t))*x(4);
dx_dt(2)=((1j*26.46*10^7)*exp(j*1.252*(10^7)*t))*x(1)+((1j*7.686*10^7)*exp(j*1.252*(10^7)*t))*x(3);
dx_dt(4)=((1j*7.686*10^7)*exp(j*1.252*(10^7)*t))*x(1)+((1j*36.54*10^7)*exp(j*1.252*(10^7)*t))*x(3);

답변 (1개)

Jan
Jan 2013년 3월 10일
Note: 7.686e7j is much faster than 1j*7.686*10^7.
You do not need a special command to get the initial values. You can set it to any [1 x 4] vector, which satisfy your problem.

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by