Bob
2011-10-01 17:05:31 UTC
Hi guys!
-------------------------------------------------------------------------
[time,z]=ode45(@myode,[0 2],z0,options);
for i=time
X_traj=X_traj+z(:,1)(i)*cos(z(:,2)(i)+beta_zero);
end
------------------------------------------------------------------------
where is the mistake? from ode45 I get a matrix with four columns, and I want to do some operation until the integration time runs out.. any idea?
thanks in advance :)
-------------------------------------------------------------------------
[time,z]=ode45(@myode,[0 2],z0,options);
for i=time
X_traj=X_traj+z(:,1)(i)*cos(z(:,2)(i)+beta_zero);
end
------------------------------------------------------------------------
where is the mistake? from ode45 I get a matrix with four columns, and I want to do some operation until the integration time runs out.. any idea?
thanks in advance :)