email_after_execution.m
is a MATLAB function that sends you an email after your code has finished running and reports how long it took to execute it. If execution fails, MATLAB mails you the error message. Designed for when you've left your script running in the office overnight, and now are tossing and turning in bed wondering how it's doing.
The function reuses two bits of code found on GitHub:
- matlabmail.m -- gist published by David Gleich
- seconds2human.m -- repo by Rody Oldenhuis
You might need to switch off the two-step verification in order to make matlabmail
work. Check out the developer's blog for details.