-
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
-
MATLAB-practical--material
MATLAB实用源代码和一些资料,感觉挺有用的(MATLAB practical source code and material)
- 2013-04-10 11:41:56下载
- 积分:1
-
DYNAMIC-dynamites-of-SIMULATIO-simulinga-N-MODEL-
DYNAMIC dynamites of SIMULATIO simulinga N MODEL OF A HYBRID POWER SYSTEM so that dynamics of hybrid solar and wind can be analyzed
- 2011-12-13 18:55:44下载
- 积分:1
-
MI
说明: 互相关法的实现。一般多用于图像配准之中,能够求两幅具有角度偏移图像的互相关值大小。互相关值能够应用于众多方面。(Implementation of Cross Correlation Method. Generally used for image registration, can be obtained with two angle offset image cross-correlation value size. The cross-correlation value can be applied to a number of aspects.)
- 2017-01-20 14:49:46下载
- 积分:1
-
signal-autocorrelatin-functions
信号的相关性是很重要的性质,求一维,二维高斯随机数的自相关函数,并进行统计分析。(Signal correlation is very important, for the properties of one-dimensional, two-dimensional gaussian random autocorrelation, and statistical analysis.
)
- 2011-04-19 17:26:55下载
- 积分:1
-
attractors
Rossler, Chua and lorenz attractors in GNU Octave
- 2011-12-27 14:54:19下载
- 积分:1
-
GengerateCrossCorreslationFuction
TDOA的广义相关实现方法,用来计算TDOA(TDOA generate cross correlation function to implement the TDOA)
- 2012-01-28 13:40:23下载
- 积分:1
-
6DOF
本程序为弹道仿真程序,为6自由度仿真程序,供参考(guidance law)
- 2017-02-08 19:25:03下载
- 积分:1
-
rs
说明: Matlab code for RS encoding and decoding
- 2010-09-24 22:25:13下载
- 积分:1
-
Irre_Am6
自己摸索了很长时间,根据参考资料自己编写了一个用于生成轨道谱的程序,希望能够和大家一起分享^_^(Their own way for a long time, according to a reference to write your own program to generate spectral track, hoping to share with everyone ^ _ ^)
- 2011-06-08 17:11:08下载
- 积分:1