GUI
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I woluld like to plot a image on any push button or toggle button
can you pls guide me.
0 Commenti
Risposta accettata
Gerd
il 7 Lug 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 Commenti
Paulo Silva
il 7 Lug 2011
Murali Mohan you accepted the wrong answer but thanks for posting the solution you chosen.
Più risposte (2)
Jan
il 7 Lug 2011
Another approach:
pic = fullfile(tempdir, 'picture.png');
uicontrol('Style', 'pushbutton', ...
'String', '
<<file-----pic--.>>
');
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!