-
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
-
PSOt
粒子群优化智能算法工具箱。在使用matlab时,可以减少程序编写工作量,降低难度,也可进行二次开发!(Particle Swarm Optimization intelligent algorithm toolbox. Using matlab, can reduce the programming workload, reduce the degree of difficulty can also be a secondary development.)
- 2012-03-30 21:28:17下载
- 积分:1
-
514_1poission
随机过程中的possion算法在matlab中的实现例程(random process of possion algorithm in Matlab routines to the realization)
- 2007-05-13 18:05:27下载
- 积分:1
-
xianxingshenjingwangluo2
基于matlab上开发的关于人工神经网络的线性神经网络的程序例子(Matlab based on the development of artificial neural networks on a linear neural network program examples)
- 2013-08-04 15:16:39下载
- 积分:1
-
shipinfenxi
很有用的时频分析工具,内附各个函数的说明,方便调用。(Very useful tool for time-frequency analysis, containing a description of each function, easy call.)
- 2013-08-28 00:23:54下载
- 积分:1
-
FEM_2Dor3D_modeshapes.m
FEM analysis of mode shape
- 2011-12-10 08:30:33下载
- 积分:1
-
mrc_mrt_no_interference
瑞利衰落条件下的无线信道蒙特卡罗matlab仿真,供无线领域初学者参考。(The Monte-Carlo simulation of wireless channels under Rayleigh fading.)
- 2015-04-15 16:21:34下载
- 积分:1
-
mccdmaU1U2_Tap123_report.m
2个用户的cdma程序..比较了TDL模型在白噪声环境下和瑞利环境下模拟得出BER。(2 users cdma program .. compare TDL model in white noise environment and Rayleigh environment by BER.)
- 2009-09-05 04:09:15下载
- 积分:1
-
GridStorageBatt
GRID STORAGE BATTERY
- 2013-01-09 02:23:06下载
- 积分:1
-
FuncionandoNovaFunc
A Survey of Genetic Algorithms do autor M.
Tomassini
- 2013-11-17 12:34:12下载
- 积分:1