0
SciLab Compex ode

Dear all,

I have a problem with solving system equation. I cannot understand where is my mistake

clear
clc

function dRho=TwoLevelSystem(t, rho)
    
     dRho(1)=%i*Omega*(rho(3)-rho(4))+Gamma*rho(2);
     dRho(2)=-%i*Omega*(rho(3)-rho(4))-Gamma*rho(2);
     dRho(3)=-(gama+%i*Delta)*rho(3)-%i*Omega*(rho(2)-rho(1));
     dRho(4)=-(gama-%i*Delta)*rho(4)+%i*Omega*(rho(2)-rho(1));
     
endfunction
     
Omega=2;
Delta=0; 
Gamma=1; 
gama=Gamma/2; 
t=0:0.1:10; 
y=ode('rk',[1;0;0;0],0,t,TwoLevelSystem)

thanks


Scilab 18-11-20, 7:03 p.m. Emil20
0
Thanks for taking the time to share! the impossible quiz
20-11-20, 2:27 p.m. darthvader88


0
I look at your problem like when I play an impossible game. It's really hard ^^
07-05-21, 6:08 p.m. theimpossiblegame


0
That's great, this is great when you want to learn more, I invite you to This is my page come to experience many new games! the impossible quiz
09-12-21, 3:03 p.m. candymika


Log-in to answer to this question.