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 comentarios

Kevin Chng
Kevin Chng el 11 de Oct. de 2018
How about put it in your callback for you button?
%Call back button function
webpage('http://www.yahoo.com') %MATLAB Browser
%or
dos('explorer http://www.yahoo.com'); %Explorer
Serena Capelli
Serena Capelli el 12 de Oct. de 2018
Thank-you so much!
Daniel Liberman
Daniel Liberman el 11 de Mzo. de 2020
Can the same thing done for a PDF/doc file?

Iniciar sesión para comentar.

 Respuesta aceptada

Kevin Chng
Kevin Chng el 12 de Oct. de 2018
Editada: Kevin Chng el 12 de Oct. de 2018

0 votos

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 comentarios

Farzam Malmir
Farzam Malmir el 4 de Feb. de 2019
I have a text box including additional information about the product and the developers, in which I need to add a couple hyperlinks. I use label as text box, and to the best of my knowledge, "label objects do not have callback properties". So, how can I add code in callback function?
Kevin Chng
Kevin Chng el 17 de Mzo. de 2020
Use button instead. Are you using App Designer?
Adi Purwandana
Adi Purwandana el 12 de Mzo. de 2023
I tried this on app designer:
Undefined function 'webpage' for input arguments of type 'char'.
Adam Danz
Adam Danz el 12 de Mzo. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

Adam Danz
Adam Danz el 10 de Mayo de 2021

1 voto

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.

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Preguntada:

el 11 de Oct. de 2018

Comentada:

el 12 de Mzo. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by