Button for choose language-guide
Show older comments
Hi,
how can I define any flag (picture) to bushbutton or how to put any picture for example to the pushbutton?
Thank you
Accepted Answer
More Answers (1)
Jan
on 12 Mar 2012
You can set the 'CData' property of the uicontrol:
rgb = rand(10, 20, 3);
a = uicontrol('cdata', rgb);
3 Comments
john
on 13 Mar 2012
Jan
on 13 Mar 2012
GUIDE is a program to design GUIs, therefore you cannot insert a picture into it. The original question sounds, like you want to display a picture inside a pushbutton. If you want to get anything else, please explain this more detailed. What does "define a picture to pushbutton" exactly mean?
john
on 13 Mar 2012
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!