-
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
-
rayleigh_Filter_Model
说明: 该程序是用matlab语言实现的关于瑞利信道滤波器的描述(that the procedure was used Matlab language on the Rayleigh Channel Filter Description)
- 2005-11-24 17:48:14下载
- 积分:1
-
source
Matlab可视化界面设计与控件使用源代码名称:exam
调试环境:Win XP;Matlab 6.5 (Matlab visualization interface design and control the use of the name of the source code: exam debugging environment: Win XP Matlab 6.5)
- 2008-02-21 18:27:06下载
- 积分:1
-
0070509379
this archive is a document that us allows make a simulation of modulator sigma delta
- 2010-10-12 08:40:18下载
- 积分:1
-
labeling
Image processing, labelling and creating position matrix of points of significance in a picture
- 2011-02-05 19:21:01下载
- 积分:1
-
readMNIST
用ELM实现手写数字的识别,快速,用MNIST数据库(Handwritten numbers recognition realized by ELM)
- 2017-06-16 15:10:17下载
- 积分:1
-
lm_ts
Levenberg-Marquardt method for training a Takagi-Sugeno fuzzy system
- 2016-10-15 13:19:08下载
- 积分:1
-
STFT
短时傅里叶变换实现线性调频信号的时频分析(Time-frequency analysis of LFM signal by short time Fourier transform)
- 2018-03-06 20:42:04下载
- 积分:1
-
CDMAupdate
仿真实现调制解调的过程,使用此程序需要MATLAB开发工具(Simulation of the process of modulation and demodulation, using this program requires MATLAB development tools)
- 2010-06-09 16:45:25下载
- 积分:1
-
vol_balok
to calculate cubes volume
- 2009-11-16 11:02:23下载
- 积分:1