Hyperlink in App Designer

조회 수: 9 (최근 30일)
Serena Capelli
Serena Capelli 2018년 10월 11일
댓글: Adam Danz 2023년 3월 12일
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
Serena Capelli
Serena Capelli 2018년 10월 12일
Thank-you so much!
Daniel Liberman
Daniel Liberman 2020년 3월 11일
Can the same thing done for a PDF/doc file?

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

채택된 답변

Kevin Chng
Kevin Chng 2018년 10월 12일
편집: Kevin Chng 2018년 10월 12일
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
Adi Purwandana
Adi Purwandana 2023년 3월 12일
I tried this on app designer:
Undefined function 'webpage' for input arguments of type 'char'.
Adam Danz
Adam Danz 2023년 3월 12일
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.

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

추가 답변 (1개)

Adam Danz
Adam Danz 2021년 5월 10일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by