How do I open a file by pressing a pushbutton in GUIDE?

7 vues (au cours des 30 derniers jours)
ARAVINDHAN RAMESH
ARAVINDHAN RAMESH le 17 Avr 2014
Commenté : Fawad Chandio le 4 Sep 2019
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?
  1 commentaire
hamza Aitoumghar
hamza Aitoumghar le 23 Juil 2018
You use the command uigetfile on the script view

Connectez-vous pour commenter.

Réponse acceptée

Chandrasekhar
Chandrasekhar le 17 Avr 2014
Modifié(e) : Chandrasekhar le 17 Avr 2014
use the following command in the call back function of the push button
winopen('mydoc.doc')
winopen('myimage.jpg')
winopen('mypdf.pdf')
  2 commentaires
ARAVINDHAN RAMESH
ARAVINDHAN RAMESH le 17 Avr 2014
It's working. Thanks!
Fawad Chandio
Fawad Chandio le 4 Sep 2019
thank you so much Sir .
great job faster

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by