91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-05-29
  • 語言: Matlab
  • 標(biāo)簽: matlab??

資源簡介

Matlab的GUI秒表秒表計時器-stopwatch.m
程序是基于matlab7.0編寫的,貼出來希望有所幫助!呵呵~
程序:
stopwatch.m 實(shí)現(xiàn)程序
程序界面
秒表計時器.jpg 程序界面

資源截圖

代碼片段和文件信息

function?stopwatch(cmd)?
%STOPWATCH??Creates?a?GUI?that?displays?elapsed?time?from?mouse?or?keyboard?inputs?
%?
%???Controls:?
%?????Press?the?START?button?to?begin?the?timer?(or?press?any?key?except?L?R?or?X)?
%?????????If?the?timer?has?already?been?activated?press?the?PAUSE?button?to?
%???????????stop?the?timer?(or?press?any?key?except?L?R?or?X)?
%?????????If?the?timer?has?been?paused?press?the?RESUME?button?to?continue?from?
%???????????the?paused?time?(or?press?any?key?except?L?R?or?X)?
%?????????If?the?timer?is?in?lap?mode?press?the?RESUME?button?to?continue?as?though?
%???????????the?lap?time?had?not?been?activated?(or?press?any?key?except?L?R?or?X)?
%?????Press?the?LAP?button?to?view?lap?times?(or?press?the?L?key)?
%?????????The?LAP?button?can?be?pressed?successively?to?view?mulitple?laps?
%?????Press?the?RESET?button?to?restore?the?timer?(or?press?the?R?key)?
%?????Press?the?EXIT?button?to?close?the?timer?window?(or?press?the?X?key)?
%?
%???Example?usage:?>>?STOPWATCH?
?
%?AUTHOR:?Joseph?Kirk?(c)?3/2007?
%?EMAIL:?jdkirk630?at?gmail?dot?com?
?
global?HFIG?TIME?DISPLAY?START?STOPPED?LAP?LAPFLAG?
?
if?nargin???TIME?=?0;?STOPPED?=?1;?LAPFLAG?=?0;?
??HFIG?=?figure(‘Name‘?‘秒表計時器‘?‘Numbertitle‘?‘off‘?‘Position‘?[400?300?350?100]?...?
????‘Menubar‘?‘none‘?‘Resize‘?‘off‘?‘KeyPressFcn‘?[mfilename?‘(‘‘KEY‘‘)‘]);?
??filemenu?=?uimenu(‘Label‘?‘文件‘);?
??uimenu(filemenu?‘Label‘?‘退出‘?‘Callback‘?[mfilename?‘(‘‘EXIT‘‘)‘]);?
??helpmenu?=?uimenu(‘Label‘?‘幫助‘);?
??uimenu(helpmenu?‘Label‘?‘幫助文件‘?‘Callback‘?‘help?stopwatch‘);?
??uimenu(helpmenu?‘Label‘?‘關(guān)于7‘?‘Separator‘?‘on‘?‘Callback‘?[‘msgbox({‘‘?Stopwatch‘?...?
????‘?GUI‘‘?‘‘?‘‘?‘‘?by?Joseph?Kirk?(c)?2007‘‘?‘‘?jdkirk630@gmail.com‘‘}‘‘About‘‘)‘]);?
??START?=?uicontrol(HFIG?‘style‘?‘PushButton‘?‘Position‘?[10?10?75?25]?...?
????‘String‘?‘開始‘?‘Callback‘?[mfilename?‘(‘‘START‘‘)‘]);?
??LAP?=?uicontrol(HFIG?‘style‘?‘PushButton‘?‘Position‘?[95?10?75?25]?...?
????‘String‘?‘計時?(L)‘?‘Callback‘?[mfilename?‘(‘‘LAP‘‘)‘]?‘Enable‘?‘off‘);?
??uicontrol(HFIG?‘style‘?‘PushButton‘?‘Position‘?[180?10?75?25]?...?
????‘String‘?‘從置?(R)‘?‘Callback‘?[mfilename?‘(‘‘RESET‘‘)‘]);?
??uicontrol(HFIG?‘style‘?‘PushButton‘?‘Position‘?[265?10?75?25]?...?
????‘String‘?‘退出?(X)‘?‘Cal

評論

共有 條評論