-
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
-
ofdm-over-awgn
ofdm signal over awgn
- 2014-11-25 03:48:33下载
- 积分:1
-
ECG-DTCWT
基于双树复小波变换的心电去噪方法研究,比较详细的资料( ECGDenoising Based on Dual Tree Complex Wavelet Transform)
- 2020-12-29 09:59:00下载
- 积分:1
-
滤波程序
说明: 滤掉低频段和高频段频率,分波段滤波,过滤掉噪声干扰,绘制功率谱密度曲线(Filter out the low and high frequency bands, filter in different bands, filter out the noise interference, and draw the power spectral density curve.)
- 2020-06-25 02:20:02下载
- 积分:1
-
99273902BP_decode
In our following paper, we find that the shortten codes of DVB-S2 have some problems,this program can provide a good DVB-S2
- 2010-01-09 23:55:05下载
- 积分:1
-
BPMIP
BP-神经网络相关的Matlab源码程序(BP)
- 2010-02-06 15:29:06下载
- 积分:1
-
16-QAM
modulation and demodulation 16-QAM
- 2011-01-30 22:18:44下载
- 积分:1
-
ofdm
说明: 1、ofdm信道仿真
2、基于梳妆导频的OFDM信道估计
(1, ofdm channel simulation 2, based on the dressing pilot channel estimation of OFDM)
- 2008-11-27 09:41:14下载
- 积分:1
-
IIR
模拟巴特沃斯滤波器,并可观察期幅频相频特性曲线(Analog Butterworth filter, and can observe the phase frequency of amplitude-frequency characteristic curve)
- 2010-05-31 10:55:52下载
- 积分:1
-
FMBC-complexity-analysis
FMBC complexity analysis
- 2013-10-14 09:06:53下载
- 积分:1