I am doing something like this:
a = [1:100];
for i=1:100,
plot([1:i], a(1:i));
end
My issue is that the plot is not shown until the loop is finished. How can I show/update the plot in every iteration?
See Question&Answers more detail:os