I've generated a MATLAB function called "sendToGmailFromGmailError" which automatically sends an email from a user-controlled gmail account to another gmail account. The purpose of this program is to call the function in the MATLAB "try/catch" structure. In the event that the code in the "try" section of the code encounters an error, the "sendToGmailFromGmailError" function will notify yourself or an individual in your team that your simulation has encountered an error. Moreover, the email contains the MATLAB error message so that you can know what went wrong.