Hyperlink in App Designer

48 vues (au cours des 30 derniers jours)
Serena Capelli
Serena Capelli le 11 Oct 2018
Commenté : Adam Danz le 12 Mar 2023
I am designining an App in the enviroment App Designer. I wonder if it is possible to insert a hypertext link in my App, so that the user can open an existing Web Page. Thank-you
  3 commentaires
Serena Capelli
Serena Capelli le 12 Oct 2018
Thank-you so much!
Daniel Liberman
Daniel Liberman le 11 Mar 2020
Can the same thing done for a PDF/doc file?

Connectez-vous pour commenter.

Réponse acceptée

Kevin Chng
Kevin Chng le 12 Oct 2018
Modifié(e) : Kevin Chng le 12 Oct 2018
Put code in callback function
%Call back button function
webpage('http://www.yahoo.com') %MATLAB Browser
%or
dos('explorer http://www.yahoo.com'); %Explorer
  4 commentaires
Adi Purwandana
Adi Purwandana le 12 Mar 2023
I tried this on app designer:
Undefined function 'webpage' for input arguments of type 'char'.
Adam Danz
Adam Danz le 12 Mar 2023
The correct function name is web but if you're using MATLAB R2021a or later, see the solution in my answer that does not rely on developing a uibutton.

Connectez-vous pour commenter.

Plus de réponses (1)

Adam Danz
Adam Danz le 10 Mai 2021
For Matlab R2021a or later, use the uihyperlink function or the UI hyperlink component in App Designer or a uifigure to add and configure a clickable link ( release notes ).
The hyperlink can be assigned to a figure, panel object, tab object, ButtonGroup, or GridLayout object when created in a uifigure.
See configurable properties.

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by