-
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_idma_ray_perfect_comp
这是一个关于未编码IDMA系统的仿真程序,调制方式是用BPSK(This is a study on non-coded IDMA system simulation program, using BPSK modulation)
- 2007-11-24 17:13:32下载
- 积分:1
-
MATLAB
matlab的同步电机的仿真技术
可用于7.0以上(matlab simulation of synchronous motor technology can be used for more than 7.0)
- 2009-06-03 21:56:16下载
- 积分:1
-
yuyinshebie.rar
说明: 钢琴曲子中的单音的识别方法(及该方法的计算过程(Piano music in the tone of the identification method (and the method of calculation)
- 2021-01-13 18:58:47下载
- 积分:1
-
gpops21
GPOPS是一个可以进行大规模非线性优化的MATLAB工具箱.(GPOPS, short for General Pseudospectral OPtimal Control Software is a Matlab optimal control software designed to implement the Gauss and Radau hp-adaptive pseudospectral methods. These methods approximate the state using a basis of Lagrange polynomials and collocate the dynamics at either the Legendre-Gauss or Legendre-Gauss-Radau points. )
- 2013-11-19 12:46:52下载
- 积分:1
-
CWSettingsWindows
code warrior for windows set up for coding in code warrior
- 2015-02-07 02:56:00下载
- 积分:1
-
antenna
对于阵列天线以及其他种类天线的2维及3维仿真,可以调节波长,天线长度,以及倾角等参数。(For 2-dimensional and 3-dimensional simulation of the array antenna, and other types of antennas, the wavelength can be adjusted, the antenna length, and the inclination and other parameters.)
- 2015-04-14 16:47:19下载
- 积分:1
-
m-u
计算钢筋混凝土的曲率-弯矩曲线,并标出了各种特征点(Calculate the curvature of the reinforced concrete- the bending moment curve, and mark a variety of feature points)
- 2020-12-19 15:19:10下载
- 积分:1
-
UMP
考虑不平衡磁拉力作用下,转子的轴心轨迹变化求解方法。(unbalanced magnetic pull )
- 2013-11-23 20:02:29下载
- 积分:1
-
Plate-detection
Plate Detection-You must Open The ebigood.fig for see my program
- 2012-11-19 22:34:28下载
- 积分:1