Info

此问题已关闭。 请重新打开它进行编辑或回答。

Solving coupled ODE's by ode45

1 次查看(过去 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 个评论
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