Info

This question is closed. Reopen it to edit or answer.

Solving coupled ODE's by ode45

1 view (last 30 days)
sara kian
sara kian on 9 Mar 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 9 Mar 2013
Where are your equations?
sara kian
sara kian on 9 Mar 2013
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);

Answers (1)

Jan
Jan on 10 Mar 2013
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.

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!