MATLAB: Creating message dialog box

dialog-box

Hi all
I want to create a message dialog box with an arbitrary figure.How can I do that?

Best Answer

For IconData and IconCMap you can look in the source code of msgbox by "edit msgbox":
a = load('dialogicons.mat');
IconData = a.warnIconData;
IconCMap = a.warnIconMap;
IconCMap(256, :) = get(figureHandle,'Color'); % Pseudo transparence
See also imread