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 i
It only works for one append!If you append twice, Matlab gives an error "File might be currupt".
scipy.io.savemat('temp.mat',{'data':np.ones(10)}) # write
with open('temp.mat','ab') as f:
scipy.io.savemat(f, {'newdata1':np.arange(5)}) # append
with open('temp.mat','ab') as f:
scipy.io.savemat(f, {'newdata2':np.arange(5)}) # append