How do I open a file by pressing a pushbutton in GUIDE?
4 次查看(过去 30 天)
显示 更早的评论
I'm required to open a file(A PDF, A image etc.) when a pushbutton is pressed. I'm working using GUIDE. What code and where do I type in?
采纳的回答
Chandrasekhar
2014-4-17
编辑:Chandrasekhar
2014-4-17
use the following command in the call back function of the push button
winopen('mydoc.doc')
winopen('myimage.jpg')
winopen('mypdf.pdf')
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!