You may want to use uiwait() so the message pauses there and waits for the user, and does not keep barreling along with the rest of your code, as just a plain msgbox will.
message = sprintf('Disease identified as %s', DiseaseIdentified{1});
uiwait(warndlg(message));
or, if it is normal
uiwait(helpdlg(message));
uiwait(msgbox(message));
Best Answer