MATLAB: Making an Error GUI

errorfigureguiguide

i want to tell matlab; that after you finish the Solution if some thing happened open a small screen "Error", or Making a Small Screen after the Solution is Done to Say " Done" , How can i make that ? Thx in Advance

Best Answer

Try this:
warningMessage = sprintf('You really messed up! Your value is %f', value);
uiwait(warndlg(warningMessage));
successMessage = sprintf('You are done!\nYour results are in file:\n%s', fullFileName);
uiwait(helpdlg(successMessage));