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

MrPuzzled Marc
MrPuzzled Marc 2011년 3월 8일
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 2011년 3월 8일
web('http://www.google.com')
MrPuzzled Marc
MrPuzzled Marc 2011년 3월 8일
Thank you very much for your help.You solved my problems.Thanks alot.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by