资源简介
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用梯度下降算法开发的rbf神经网
- 锁相环解调FM信号-fm.mdl
- matlab开发的FIR滤波器附音频-FIR音频滤
- 公共汽车悬挂系统模型的MATLAB仿真程
- matlab自动提取figure中的数据-figexport
-
原创有源电力滤波器simuli
nk仿真模型 - Matlab有关车牌汉字识别-标准汉字的自
- Matlab中蚁群算法求解连续函数优化的
- MATLAB控制系统设计仿真应用很好的源
-
MATLAB SIMUli
nk建模与仿真精讲.part28 - 用matlab编写的流体计算和传热程序-
- MAtlab有限元程序-matlab 有限元源程序
- 网上找的BP神经网络算法程序和大家分
-
花了一下午simuli
nk中对同个一级倒立 -
APF中的谐波检测的SIMUli
nk仿真-APF1 - 基于蚁群算法和神经网络匹配算法的
- 原创毕业设计完工贴出来和大家分享
- 广度优先搜索 matlab
- matlab代码读电离层TEC文件
- 兰顿蚂蚁 MATLAB实现代码
- SVM(MATLAB).zip
- matlab开发-sigmoid
- matlab开发-信号平滑移动平均滤波器
- matlab开发-同步发电机的详细模型,包
- matlab开发-多层反向传播神经网络
- matlab开发-自适应调制fdmltegeneralcode
- matlab开发-Parrotminirones的模拟支持包
- matlab开发-FBM调制解调
- matlab开发-nnsysid
- matlab开发-使用gnewton-raphson方法查找任
评论
共有 条评论