资源简介
Matlab的GUI秒表秒表计时器-stopwatch.m
程序是基于matlab7.0编写的,贴出来希望有所帮助!呵呵~
程序:
stopwatch.m 实现程序
程序界面
秒表计时器.jpg 程序界面
程序是基于matlab7.0编写的,贴出来希望有所帮助!呵呵~
程序:
stopwatch.m 实现程序
程序界面
秒表计时器.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 < 1
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‘ ‘关于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
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论