Python How To Save Variable Matlab For Loop