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.

 采纳的回答

Walter Roberson
Walter Roberson 2011-3-8

0 个投票

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 个评论

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?
web('http://www.google.com')
Thank you very much for your help.You solved my problems.Thanks alot.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 App Building 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by