-
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
-
eqber_adaptive
a linear or a DFE equalizer,使用LMS滤波器来处理图像的matlab源码和demo()
- 2008-02-01 00:07:04下载
- 积分:1
-
MonteCarlo
蒙特卡洛模拟 随机因素的统计分析 对系统规模没有要求(Monte Carlo simulation of the statistical analysis of random factors in the scale of the system does not require)
- 2009-04-30 16:08:02下载
- 积分:1
-
adptive-signal-processing
阵列信号处理,自适应波束形成器,用matlab实现线性阵列自适应波束形成,并用GUI实现波形输出(adaptive beamforming ,matlab code and the GUI figure)
- 2012-04-13 20:04:40下载
- 积分:1
-
mean_pe2
平均误码率统计的的matlab程序,使用的时候还有一点注意事项,见程序内部说明(The average bit error rate statistics matlab program, when used, also Note, see the procedures for internal instructions)
- 2012-06-12 01:05:02下载
- 积分:1
-
duffing-Bifurcation
Duffing系统分岔图与Poincare截面绘制(Duffing bifurcation diagram and Poincare section drawing)
- 2021-03-25 15:39:14下载
- 积分:1
-
Arithmetic-coding
算术编码的程序,是一种经典的程序,可以作为一个函数来使用。(Arithmetic coding procedures, is a classic program that can be used as a function.)
- 2013-12-23 17:13:10下载
- 积分:1
-
vertical_parking
垂直泊车仿真模型,采用三段弧式路径规划,能够实现在不同起始点下的垂直泊车(Vertical parking simulation model, using three-stage arc path planning, to achieve vertical departure at different starting points)
- 2017-03-14 22:15:45下载
- 积分:1
-
sova_decode
是一个介绍软维特比解码的matlab软件程序,针对8psk,(Introduction is a soft Viterbi decoding matlab software program, for 8psk,)
- 2007-10-11 15:09:32下载
- 积分:1
-
sea
假设有一组海底深度测量数据,采用插值方式绘制海底形状图。(Assuming that there is a group of undersea depth of measurement data, using interpolation methods seabed mapping the shape of Fig.)
- 2008-01-07 19:04:54下载
- 积分:1