On a side note, if you are running something for days or weeks you should implement checkpointing anyways. I have no idea if matlab allows that for internal operations
The actual problem OP has is that their simulation can't be restarted if something goes wrong