My problem is that i have a code that involves up to at least 500 iterations to give a decent plot of contours showing the temperature distribution of a metal plate, with every number in the matrix representing one division of the plate. I'd have to repeatedly generate this plot with decreasing increments of the size of divisions until it reaches a certain accuracy,what is the best way to do so?? I thought about iterating the whole thing couple of times but that would include 500 times every time! If you know what i mean. Help would be very appreciated. Thanks!! there is the actually problem attached as pdf file. Thx!