andy810915 Posted July 3, 2003 Report Share Posted July 3, 2003 I wanna to add 2D data to an build array and save it. For one run, i can manage it, what about for 10 runs? For loop's N=10, each run i produce a set of 2D data, but i wanna to average them and save them as one set. Quote Link to comment
Michael Aivaliotis Posted September 4, 2003 Report Share Posted September 4, 2003 I'm sorry no-one else responded in a reasonable time but I'll try to close this one off for others that might be in the same predicament. Basically you need to use a shift register. You can right-click on the borders of FOR and While loops to create shift registers. The shift register is a powerful tool and it allows you to carry the data from previous iterations into the present one. So, in your case, you would average the new data (add then devide by 2) with the previous data then pass it along back on the shift register. This can be repeated for as many iterations as you wish. On the outside of your loop you can place the saving of your data. At that point you would have an average of all the dat collected from previous loop iterations. This would be carried on the shift register. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.