Hi, I have encountered a problem in the developing the GUI. I managed to create the button and also my GUI interface but I do not know how to insert the code into the GUI. Meanwhile, for instance if I wish to enter a html code for eg: www.google.com into a push button so that when i click on it will automatically forward it to the website without showing out in the command window like what this code did (disp('This is a link to href="http://www.yahoo.com">Yahoo</a.');). I m very poor in my matlab skill and wish to seek for more help here. Thank you in advance.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Mzo. de 2011

0 votos

Use the property inspector to locate the pushbutton, and use the property inspector to change the Callback property of the pushbutton to invoke your routine.

3 comentarios

MrPuzzled Marc
MrPuzzled Marc el 8 de Mzo. de 2011
Do you know any functions that can add in so that when I add the link into the push button. When i clicked on the push button, it will automatically opened the website(for eg:google)? I tried using disp('This is a link to <a href="http://www.yahoo.com">Yahoo</a>.'); . The website link appears on the command window when I click on the push button on my GUI.But now I wish instead on appearing on the command window, it appears on the another new figure showing the webpage?
Walter Roberson
Walter Roberson el 8 de Mzo. de 2011
web('http://www.google.com')
MrPuzzled Marc
MrPuzzled Marc el 8 de Mzo. de 2011
Thank you very much for your help.You solved my problems.Thanks alot.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by