-
DateConvert
DateConvert:简单而快速的日期转换
DateConvert转换DATESTR(0)格式的日期向量或序列号和日期向后。
Matlab的DATENUM,DATEVEC和DATESTR接受各种不同意见,但结果他们是缓慢的。如果输入格式正是众所周知,转换可以更快:
DATENUM( 17 - 10 - 2009 11时08分23秒 ):2.97秒
DateConvert( 17 - 10 - 2009 11时08分23秒 , 号码 ):0.039秒
=>“1.3%(1000环,1.5GHz的奔腾- M的,利用Matlab 7.7)
DateConvert不*不*验证作为Matlab的日期函数输入日期:
DATEVEC( 32 - 2 - 2008 25:62:63 )的答复[2008 3 4 2 2 7]
DateConvert( 32 - 2 - 2008 25:61:67 , 载体 )的答复[2008 2 32 25 61 67]!
因此DateConvert几乎微不足道,但对速度进行了优化。我需要时间排序200 000邮票,并从217个减少到11秒的时间。
请运行单元测试TestDateVec检查的有效性和速度。
测试:利用Matlab 6.5,7.7,7.8,winxp的,32位。
纯Matlab代码,所以兼容性的MacOS,Linux操作系统,64位预期。
英语月份名称是必要的。(DateConvert: Simple but fast date conversion
DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards.
Matlab s DATENUM, DATEVEC and DATESTR accept a variety of inputs, but in consequence they are slow. If the input format is exactly known, the conversion can be much faster:
DATENUM( 17-Oct-2009 11:08:23 ): 2.97 sec
DateConvert( 17-Oct-2009 11:08:23 , number ): 0.039 sec
=> 1.3 (1000 loops, 1.5GHz Pentium-M, Matlab 7.7)
DateConvert does*not* validate the input date as Matlab s date functions:
DATEVEC( 32-Feb-2008 25:62:63 ) replies [2008 3 4 2 2 7],
DateConvert( 32-Feb-2008 25:61:67 , vector ) replies [2008 2 32 25 61 67] !
So DateConvert is nearly trivial, but optimized for speed. I needed it for sorting 200 000 time stamps and reduced the time from 217 to 11 sec.
Please run the unit-test TestDateVec to check validity and speed.
Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit.
Pure Matlab code, so compat)
- 2010-07-05 11:59:46下载
- 积分:1
-
Fuzzy_kung
Simulation Fuzzy PID
- 2010-10-02 17:59:57下载
- 积分:1
-
MITBIHsignal
适用于MIT-BIH数据库中心电信号的读取,同时做出心电图像(For signal MIT-BIH database center to read, and make ECG as)
- 2011-01-12 16:43:01下载
- 积分:1
-
denoising
一维小波降噪,该程序运用多尺度小波变换法进行降噪,效果不错(One-dimensional wavelet noise reduction, the program is the use of multi-scale wavelet transform for noise reduction and good results)
- 2021-03-09 13:09:27下载
- 积分:1
-
DSP_FORTRAN
胡广书 数字信号处理-理论,算法与实现的书中源程序 fortran版本(HU-book Digital Signal Processing- theory, algorithms and implementation fortran source code version of the book)
- 2013-11-04 20:04:17下载
- 积分:1
-
wumpus3
implements wumpus world with artificial intelligence resolution
- 2014-12-23 00:55:54下载
- 积分:1
-
Matlab_Polygons_intersection
多边形网格相交区域搜索,MATLAB源程序,含有若干示例(Polygon mesh intersection area search, MATLAB source, contains a number of examples)
- 2013-11-11 09:56:41下载
- 积分:1
-
FEM_pack
关于有限元分析的可以使用的matlab代码,对于FEM编程可以节约不少时间。(Finite element analysis on the matlab code can be used, for FEM programming can save a lot of time.)
- 2017-09-17 23:06:00下载
- 积分:1
-
hiding
这是信息隐藏的MATLAB源程序,其中包含有基本的信息隐藏算法(This is the MATLAB source of information hiding, which contains basic information hiding algorithm)
- 2010-05-09 10:35:49下载
- 积分:1
-
HideAndShowTaskbar
使用Visual Basic
使用将Taskbar隐藏和显示的API(use Visual Basic to use and display Taskbar hiding API)
- 2007-03-28 16:24:51下载
- 积分:1