Adding picture in msgbox

40 views (last 30 days)
Timon Rayis
Timon Rayis on 27 Nov 2020
Commented: Timon Rayis on 27 Nov 2020
Can I put an image in msgbox? something like this:
I have read that we can place icon (which is smaller in size).
can we place image so that user can see some data in message box image?

Answers (1)

VBBV
VBBV on 27 Nov 2020
Edited: VBBV on 27 Nov 2020
%f true
ms_g = imread('yourpic.jpg');
h = msgbox('your messag','hello','custom',ms_g)
  4 Comments
Timon Rayis
Timon Rayis on 27 Nov 2020
Error using msgbox (line 134)
Colormap must be an array of type double, float or sparse when Icon is 'custom'.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!