I am having serious issues storing information in a vector after every iteration. Suppose that we have this code;
delta = 0;
figure(1)
while delta < 30
[t,x_]=Ass3(10,8/3,10+delta,100,1,1,1)
hold on
plot3(x_(:,1),x_(:,2),x_(:,3));
grid on
title('Changing Rho on x,y,z plane')
xlabel('x Value')
ylabel('y Value')
zlabel('z Value')
delta = delta + 5
end
Where Ass3 is another function from a different document. I want to store a vector after every incremented 'delta' I have attempted to use an if statement with lengths being less then the length of a different vector but nothing seems to be working.
results = [];before the loop. Then at each iteration of the loop you can add an item to the list. Likevec = f(delta); results = [results,vec]. Something like that might work. – littleO Aug 25 '19 at 10:02