-
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
-
neuralnet
its a matlab s program about neural networks application
- 2009-12-28 23:17:59下载
- 积分:1
-
multi-colored-image-process
matlab数字图像处理 彩色图像处理部分
含代码和结果显示(matlab image processing color image processing section
Containing the code and the results show)
- 2015-01-25 13:35:15下载
- 积分:1
-
ARRAY
学习阵列初阶和晋级高阶的好书,希望对大家有所帮助!(Introduction to learning and promotion of high-end array of books, and they hope to be helpful to everyone!)
- 2007-07-18 08:39:47下载
- 积分:1
-
Spherical-harmonics
This is a simple function which caculates the spherical harmonic.The archive includes four M files ,and the file Comx_Sph.m is the main function.Given the degree l ,the index m and the variable x ,you can get the value of spherical harmonic.For more details ,you may read the programs.
- 2013-11-07 17:18:38下载
- 积分:1
-
M.File
IEC Flickermeter Simulation
- 2014-02-13 02:49:28下载
- 积分:1
-
ica.ps
ica code for face recognition
- 2012-04-02 14:04:41下载
- 积分:1
-
jisuanqisizeyunsuan
matlab面板应用程序,可以进行加减乘除四则运算,各种功能在程序中仅体现(coders introduction of about interface)
- 2012-08-30 09:22:39下载
- 积分:1
-
OFDM-BER
OFDM 系统的误码率的MATLAB仿真代码 可用欢迎下载(OFDM BER )
- 2020-09-21 19:47:50下载
- 积分:1
-
MATLAB-CODE-FOR-POC-ALGORITHM
Matlab code for POC Algorithm
- 2011-02-10 17:28:41下载
- 积分:1