-
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
-
sushu
素数的判定,miller-rabin,sol-str,leman,fermat等。都可以运行,下完自后自己稍微改改就可以用。(Primes judgment, miller-rabin, sol-str, leman, fermat so on. Can run is finished after their own little changed since it can be used.)
- 2013-07-25 19:21:17下载
- 积分:1
-
IIvew
Code shows how to draw circle in matlab
Good Luck !!!!!
Bineesh
- 2013-03-07 13:18:59下载
- 积分:1
-
geodes
求复杂网络节点之间的最短距离,也叫做测地线,对复杂网络的拓扑性质的分析很重要(Complex networks seeking the shortest distance between nodes, also called geodesic network topological properties of complex analysis is very important)
- 2013-11-08 14:24:04下载
- 积分:1
-
Untitled
神经网络BP算法的matlab源码,实现了学习和训练过程。(BP neural network algorithm matlab source code, to achieve the learning and training process.)
- 2011-05-04 20:01:23下载
- 积分:1
-
SIM
子空间辨识,随即输入,根据算法算出系统矩阵( Subspace Identification for Linear Systems)
- 2012-05-19 10:56:53下载
- 积分:1
-
tashkhis-chehre
detect face of people with matlab
- 2013-07-12 23:51:16下载
- 积分:1
-
rayleigh_fading1
tHIS MATLAB CODE SIMULATE RAYLEIGH MODEL USED IN WIRELESS COMMUNICATION SYSTEMS.Rayleigh fading models assume that the magnitude of a signal that has passed through such a transmission medium (also called a communications channel) will vary randomly, or fade, according to a Rayleigh distribution.
- 2013-11-08 19:51:40下载
- 积分:1
-
wcov
Weighted covariance function. Allows to give more weight on recent observations.
- 2014-02-01 20:53:20下载
- 积分:1
-
CDMA直接序列扩频
用Matlab语言完成简化的CDMA直接序列扩频系统仿真和分析。(Using Matlab language to complete the simplified CDMA direct sequence spread spectrum system simulation and analysis.)
- 2018-05-13 11:27:52下载
- 积分:1