GUI
1 回表示 (過去 30 日間)
古いコメントを表示
I woluld like to plot a image on any push button or toggle button
can you pls guide me.
0 件のコメント
採用された回答
Gerd
2011 年 7 月 7 日
Hi murali,
open GUIDE.
Place a button on the gui.
Go to the callback function
logo = imread('Logo.jpg','jpg');
image(logo);
Gerd
8 件のコメント
Paulo Silva
2011 年 7 月 7 日
Murali Mohan you accepted the wrong answer but thanks for posting the solution you chosen.
その他の回答 (2 件)
Jan
2011 年 7 月 7 日
Another approach:
pic = fullfile(tempdir, 'picture.png');
uicontrol('Style', 'pushbutton', ...
'String', '
<<file-----pic--.>>
');
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!