Hyperlink in App Designer

45 ビュー (過去 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 Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by