-
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
-
3Dpicture
Fractal, is filling in the form of non-integer dimension of space morphology. Fractal can be said to come from the existence of a theory of thinking.(Three-dimensional map of the program requirements. Fractal can be said to come from the existence of a theory of thinking.)
- 2010-09-28 21:12:21下载
- 积分:1
-
MLEqforSTBCMIMO
Maximum Likelihood equalization for STBC-MIMO systems
- 2010-02-18 18:27:28下载
- 积分:1
-
ml
说明: 正交频分复用最大似然仿真,下载立即可用。。。(ofdm of matlab)
- 2012-03-30 15:09:43下载
- 积分:1
-
DIA
基于matlab的彩色图像分割,方法是K-means聚类分割(Matlab-based color image segmentation method is K-means clustering segmentation)
- 2014-01-16 16:22:06下载
- 积分:1
-
apiext
Matlab 官方工具箱使用说明
apiext外部程序使用手册(Matlab toolbox for use in official external program apiext user manual)
- 2008-01-26 17:21:06下载
- 积分:1
-
mexcdf.r3297
IPIX 工具箱,
用于读取杂波数据,采集杂波时的信息等(IPIX kit, used to read the clutter data, collected when the information clutter)
- 2010-11-12 07:56:29下载
- 积分:1
-
nn84
nerual network system
- 2011-01-02 14:41:43下载
- 积分:1
-
imuimat
说明: 车牌识别matlab环境下实现的源代码,对于初学者有很好的借鉴作用,也可直接应用到工程中(License Plate Recognition matlab environment to achieve the source code, for the beginners have a good reference can be directly applied to engineering)
- 2008-11-25 12:30:50下载
- 积分:1
-
ROMP
一种正则化正交匹配追踪ROMP算法的matlab源程序,一个函数,方便使用(A New Regularized Orthogonal Matching Pursuit ROMP algorithm matlab source, a function, easy to use)
- 2020-11-30 16:59:28下载
- 积分:1