YoungTurk
Mechanical
- Jul 16, 2004
- 333
I would like to capture the value of a function evaluated at each step of a while loop. It seems I should write the values to a vector, but I can't figure out how to write the values to a vector (dependent on indeterminate number of iterations of the loop) and then have the vector available outside of the while loop.