-
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
-
spread
这是关于扩频的一些基本知识,希望能对大家有帮助.(this is about spreading some basic knowledge, we want to help.)
- 2006-07-27 21:33:44下载
- 积分:1
-
22new
MIMO块对角化预编码2发2收,每个用户2根接收天线时的情形。(MIMO block diagonalization precoding 2 Fat 2 received, each user two situations when the receiving antenna.)
- 2010-05-21 22:08:04下载
- 积分:1
-
binary
I need the matlab codings for medical image proccessing for eg:downsampling,bicubic interpolation
- 2012-10-07 02:19:02下载
- 积分:1
-
shibietuxiangzhongdeyuanxingmubiao
此算法可以识别大量物体中的圆形物体,使用者可更改公式,识别其他形状物体(This algorithm can identify a massive object of round objects, users can change the formula, identify other shape object)
- 2012-04-15 16:08:50下载
- 积分:1
-
STR-1.1.IntroSTR
cours systeme temps reel
- 2014-01-17 18:06:06下载
- 积分:1
-
VCmatlabmfile
VC调用matlab中定义的.m文件中的函数的实例(vc use matlab m-file )
- 2010-07-24 13:15:34下载
- 积分:1
-
myfuzzy
说明: 自己编的一些关于matlab 模糊整定的例子,两个例子,由于很久没看了,忘了哪几个是了,都是高手自己看着整吧,哈(own series of the number of Matlab fuzzy setting the example, two examples, since a long time not read, forget what the number is, are their own masters watching the whole bar, Kazakhstan)
- 2006-03-30 11:38:54下载
- 积分:1
-
QPSK
采样QPSK调制误码的仿真程序和星座图的仿真程序(QPSK moduel)
- 2012-05-10 20:20:36下载
- 积分:1
-
MatLab
matlab基础入门教学书籍,初学者入门级别教材。(matlab introductory instructional books, beginner-level textbooks.)
- 2012-08-31 17:23:26下载
- 积分:1