Alert: I have no experience running code for six days. I also do not know the system requirements for this work. But here, based on my theoretical concept. You can stop the running execution anytime by CLTR+C. Please note I just tried to implement e the idea (ignoring the time of execution of instructions).
save(['Day' num2str(k) '.mat'],'H')