-
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
-
1234
人脸的面部特征提取,有很好的效果,直接解压就可以使用(Face facial feature extraction, have very good effect, direct decompression can use
)
- 2012-04-26 16:04:15下载
- 积分:1
-
Matlab-hg
Matlab在化学工程中的应用, Matlab在化学工程中的应用(Matlab in chemical engineering, the application of Matlab in chemical engineering applications, Matlab in chemical engineering application)
- 2007-03-27 18:41:47下载
- 积分:1
-
VDSL_dowm
VDSL的下行链路仿真。1.下行(局端到用户端)速率:20Mbps,上行(用户端到局端)速率:5Mbps;传输距离为500m;在Eb/N0 = 15dB时实现误比特率Pe<=10-4
2.可用信道频谱:0.138MHz-12MHz
3.双绞线模型采用RLCG模型,传输介质为0.4mm PE cable
(simulation of VDSL down link)
- 2011-07-19 21:40:27下载
- 积分:1
-
INTRAINS
this code is a aplication for add gaussian noise in aimage
I using a color Image for myjob. it maybe create with a while noise in image
It writed in Matlab environment
- 2014-09-22 23:58:29下载
- 积分:1
-
gmjafsa
人工鱼群算法源代码,最基本的代码。可以很好的理解人工鱼群算法(Afsa is old code)
- 2015-04-01 09:51:33下载
- 积分:1
-
75448182CFAR
恒虚警检测CFAR仿真,杂波边缘 多目标情况(the coding of the CFAR technology)
- 2021-03-31 16:59:09下载
- 积分:1
-
matlab
Matlab仿真DSB-SC信号与双极性不归零码实验报告(Matlab simulation of DSB-SC signal with NRZ bipolar experiment does not report)
- 2009-05-28 23:42:16下载
- 积分:1
-
boundaries_pfile
Matlab pfile for extracting multiple boundaries from a single binary image file.
- 2009-06-27 09:02:09下载
- 积分:1
-
Rotate
Rotate Image by a degree
- 2013-11-20 18:20:49下载
- 积分:1