-
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
-
Tschebyscheff
Tschebyscheff滤波器设计,包括零极点分布,幅值相位的关系。(Tschebyscheff filter design, including the zero-pole distribution, the amplitude-phase relationship.)
- 2007-12-13 00:12:25下载
- 积分:1
-
ACF
ACF中包含两个m文件,一个是自协方差函数(可单独使用)。另一个是自相关函数计算,其调用autocov函数。(ACF contains two m files, one is self-covariance function (which can be used alone). The other is calculated from the correlation function, which calls autocov function.)
- 2010-11-10 09:41:01下载
- 积分:1
-
LMSRLS
主要介绍LMS-RLS滤波器的原理及实现方法,可以参考的(Mainly introduces LMS- RLS filter of principle and method, reference may be made)
- 2011-01-14 21:20:47下载
- 积分:1
-
pst
这个程序实现了OFDM利用多种PST方法进行减小PAR
(Use some method of PST to Reduce the PAR of OFDM
)
- 2011-05-09 21:13:00下载
- 积分:1
-
Optimization
详细介绍了优化算法-遗传优化算法和粒子群优化算法,给出了编程过程,(Optimization Algorithms (Genetic Optimization Algorithm and Particle Swarm Optimization Algorithm)are introduced in detail,the programm progress is gived)
- 2012-04-24 12:58:35下载
- 积分:1
-
Mmmaatlab18a
matlab 模糊工具箱函数,包含含了大部分的模糊工具箱函数,非常实用
(matlab fuzzy toolbox functions, including containing most of the fuzzy toolbox function, very useful)
- 2012-08-14 09:21:23下载
- 积分:1
-
Transforms-Theory-and-Applications
Transforms Theory and Applications
《转换定理和应用》。具体描述了H-function的性质和应用(Transforms Theory and Applications)
- 2013-09-12 20:51:00下载
- 积分:1
-
this-program-is-hep-full-o-analyse-the-multilevel
This is a multi-level voltage svpwm space vector control algorithm for motor controlThis is a multi-level voltage svpwm space vector control algorithm for motor controlThis is a multi-level voltage svpwm space vector control algorithm for motor control
- 2013-10-24 23:05:38下载
- 积分:1
-
PV_panel
说明: 光伏电池simulink模型,分析了光照强度和温度变化时,功率的变化情况(Simulink model of photovoltaic cell)
- 2019-12-09 19:14:18下载
- 积分:1