MatLab figure date and time static text

4 ビュー (過去 30 日間)
Lloyd
Lloyd 2013 年 10 月 8 日
コメント済み: Lloyd 2013 年 10 月 8 日
checkbox1's callback for date and time:
m=1;
while m==1
m=get(hObject,'value');
txt=datestr(now);
set(handles.datetime,'string',txt);
pause(1);
end
can you please help me to remove the checkbox that if I will push the RUN button the datetime static text will automatically call the date and time.
  5 件のコメント
Lloyd
Lloyd 2013 年 10 月 8 日
ok, I have this licenseplate.fig and whenever I will open it in guide, there's a green triangle play button. If i will push it, the gui appears and I want the date and time appears as soon as I push it.
Walter Roberson
Walter Roberson 2013 年 10 月 8 日
I think GUIDE is being referred to. And that Lloyd wants the time display to start going as soon as the GUI is launched instead of only after a button is clicked.

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

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 8 日
Create a timer() object to do the updating.
  1 件のコメント
Lloyd
Lloyd 2013 年 10 月 8 日
It'll be my first time to do a timer. I'm still learning matlab so please enlighten me :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePlatform and License についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by