How do I make an app that opens another app that displays the current date and time

2 ビュー (過去 30 日間)
Andrew Cuaki
Andrew Cuaki 2022 年 2 月 22 日
コメント済み: Benjamin Kraus 2022 年 2 月 22 日
I need to create an app that once the button is clicked will open another app that displays the date and time

回答 (1 件)

Benjamin Kraus
Benjamin Kraus 2022 年 2 月 22 日
編集済み: Benjamin Kraus 2022 年 2 月 22 日
When you say "app", are you talking about App Designer?
Regardless, most apps (either programmatic or created with App Designer) have a single function you can call to create an instance of that app. All you need to do is set up a callback on the button in one app to call that command for another app.
Or is your question about how to get an app to display the current date and time?
  4 件のコメント
Andrew Cuaki
Andrew Cuaki 2022 年 2 月 22 日
i am asking for #1
Benjamin Kraus
Benjamin Kraus 2022 年 2 月 22 日
Does it need to be an app, or does uiconfirm do what you need?
fig = uifigure;
uiconfirm(fig,"Your log-in time is: " + string(datetime),'Logged-In', ...
'Options',{'OK'},'Icon','success');

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by