My code gave me an error message that Y appears to change size on every loop.
yo = [0.5;0.5;1];
% computing the trajectory
dt = 0.01;
tspan = (dt:dt:100); % number of time steps
Y(:,1)= yo;
yinput = yo;
for i = 1: tspan(end)/dt
time = i*dt;
youtput = rk4angelstepb(@rosslerb,dt,yinput,a,b,c);
*Y = [Y,youtput]*;
yinput = youtput;
end
My code ran but I have two issues: fisrtly, the line stared gave a warning that says Y appears to change on every loop. Secondly, i tried to create a big Y, where the first is the initial condition. but I found out that Y is not equal to my initial condition yo. what am I doing wrong.