-
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
-
programmpowerflow
Complex Power Flow, param,pfs_gsm, symetrical component with graph ,Symmetrical Fault Analysis ,Ybus and Zbus
- 2013-08-23 22:21:49下载
- 积分:1
-
psd
说明: 一个功率谱估计的程序,有需要的可以研究一下(A power spectrum estimation program can be studied if necessary.)
- 2019-03-25 16:07:11下载
- 积分:1
-
SOFM
基于自组织神经网络的矢量量化编码Matlab程序(Based on self-organizing neural network vector quantization coding Matlab procedures)
- 2008-04-18 22:29:22下载
- 积分:1
-
PMSM
永磁同步电机的在各种仿真,均可运行,m文件和simulink文件都有。(Permanent magnet synchronous motors in a variety of simulation can be run, m files and simulink files have.)
- 2011-07-26 09:13:52下载
- 积分:1
-
drums_separation
separation of sounds
- 2014-08-16 17:44:59下载
- 积分:1
-
FDAtool
基于MATLAB信号处理工具箱的数字滤波器设计与仿真(Digital filter design and simulation based on MATLAB Signal Processing Toolbox)
- 2013-01-22 20:46:43下载
- 积分:1
-
XP
说明: matlab 的一个洗牌算法,调用固定区间的随机数生成,然后根据随机数序列交换位置,达到洗牌效果(Matlab call a random number generate function then exchange the numbers according to the random numbers)
- 2011-12-26 09:49:48下载
- 积分:1
-
NSR
基于C++的混响的实现,效果非常好,基于MATLAB,需要的可以下载试试(Reverb implementation C++ based, the effect is very good, based on MATLAB, need can be downloaded to try)
- 2017-01-04 11:46:37下载
- 积分:1
-
graphbuild
本软件是应用matlab软件进行画图的程序,含有程序原代码,你们可以自己跟进的需求,进行适当的修改,非常方便。(the function used Matlab to builded, and the code are attached, you can modify it depended on your need.)
- 2009-04-01 10:24:46下载
- 积分:1