Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Solving coupled ODE's by ode45

1 visualizzazione (ultimi 30 giorni)
sara kian
sara kian il 9 Mar 2013
Chiuso: MATLAB Answer Bot il 20 Ago 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 Commenti
Azzi Abdelmalek
Azzi Abdelmalek il 9 Mar 2013
Where are your equations?
sara kian
sara kian il 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);

Risposte (1)

Jan
Jan il 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.

Questa domanda è chiusa.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by