Save all inputs and outputs as matfiles for future reference