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
The article provides me with a great deal of knowledge, helping me expand my knowledge. You can access: game guides
Oops! Looks like spam! Waiting for moderator approval.
01-07-21, 7:22 a.m. gmmelissa

Login to add comment
Oops! Looks like spam! Waiting for moderator approval


Log-in to answer to this question.