I've tried to do plot inside of a loop and it prints only the last plot.
How can i fix it?
I've tried to use hold on and drawnow after the plot definition but it didn't work.
This is my code:
for t=1:5
alive = Game(World , Generations, speed);
plot(hplot2,1:Generations,alive);
end