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--.>>
');
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!