GUI
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I woluld like to plot a image on any push button or toggle button
can you pls guide me.
0 commentaires
Réponse acceptée
Gerd
le 7 Juil 2011
Hi murali,
open GUIDE.
Place a button on the gui.
Go to the callback function
logo = imread('Logo.jpg','jpg');
image(logo);
Gerd
8 commentaires
Paulo Silva
le 7 Juil 2011
Murali Mohan you accepted the wrong answer but thanks for posting the solution you chosen.
Plus de réponses (2)
Jan
le 7 Juil 2011
Another approach:
pic = fullfile(tempdir, 'picture.png');
uicontrol('Style', 'pushbutton', ...
'String', '
<<file-----pic--.>>
');
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!