I am trying to set up a matlab demonstration which works as follows. First, a fortran code is run, writing two data files. The files are then read into matlab, and the results are plotted. This works fine if I carry out this procedure once, but I need to do it within a "for" loop. When I try the loop, a figure appears after the first iteration, but no plot is drawn. The plot does not appear until the final (in this case second) iteration has completed. Does anyone know how I can get the plot to draw every iteration? The .m file is shown below. By the way, this is a simplified version of my final goal - one step at a time! Thanks for any help you can offer.