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
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by