how to solve a system of nine equation with ode45,
2 views (last 30 days)
Show older comments
When i run this code:
a =0.2;
b =0.2;
c = 7.0;
sigma = 0.22;
k = 4;
rand('seed',0);
y0 = rand(1,9)
%MyTols = odeset('RelTol',1e-5,'AbsTol',1e-7);
tspan = 0.0:0.05:500;
l = length(tspan)
rossler = @(t,u) [
sigma*k*u(1)-u(4)-u(7);
sigma*k*u(2)-u(5)-u(8);
sigma*k*u(3)-u(6)-u(9);
u(1)+a*u(2);
u(4)+a*u(5);
u(7)+a*u(8);
0.25*u(1)+(0.74-c)*u(7);
0.25*u(2)+(0.74-c)*u(8);
0.25*u(3)+(0.74-c)*u(9);
];
[T,Y] = ode45(rossler,tspan,y0);
size(T)
size(Y)
it show this message-
Warning: Failure at t=2.528325e+002. Unable to meet integration tolerances without reducing the step size below the
smallest value allowed (4.547474e-013) at time t.
please help me. i didnt get this .
Thanks in advance
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!