title: How to append to .mat file using scipy.io.savemat?
body: <p>so when I use the savemat command it tends to overwrite the file. Is there a possible way to append instead of overwriting? I know a work-around would be to put everything into a list, and then convert it to a dictionary. That won't work for me because I am trying to be RAM efficient. Doing online search I found this <a href="https://stackoverflow.com/questions/26963446/how-not-to-overwrite-the-mat-file-when-using-scipy-io-savemat">How NOT to overwrite the .mat file when using scipy.io.savemat()?</a></p>
  
  <p>that won't work either because it involves pulling a data file in your ram memory to append it every single loop, which seems stupid from the speed perspective.</p>
  
  <p>I thought about appending to a numpy binary file, then pulling that in and saving it to a .mat file? I am not sure if this would be more RAM efficient than the first option though.</p>
  
  <p>thanks!</p>