There is nothing that stops the loop after 10 seconds and you are only writing the very last iteration to file. A regular loop is fine if you really limit it to 10 seconds but get rid of that silly conversion to 1D arrays as I mentioned in the other thread you started. Auto-index the output.
↧