Hyperlink in App Designer

10 次查看(过去 30 天)
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 个评论
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