-
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
-
MFIE
MFIE.m
本程序用于磁场积分方程求解圆柱散射
- 2010-05-14 10:53:12下载
- 积分:1
-
select
matlab程序,实现meanshift算法用以来实现运动目标的自动跟踪。(sinmatlab procedures, since meanshift algorithms for automatic tracking of moving targets.)
- 2015-01-06 17:15:51下载
- 积分:1
-
SET_Output_1
Trial run of very effecitive SET_Time Algorithm
- 2013-05-09 06:37:00下载
- 积分:1
-
matlab-functions
matlab函数、命令集
一共有几百条,按字母索引(matlab function, command set)
- 2011-09-27 12:57:55下载
- 积分:1
-
test4PAMAWGN
在带限信道信号传输的仿真。仿真4PAM调制信号在AWGN信道下的性能,画出误比特率和误符号率。 (In the band-limited signal transmission channel in the simulation. Simulation 4PAM modulated signal in AWGN channel performance.)
- 2013-10-25 11:27:40下载
- 积分:1
-
Cosine-cross-similarity
利用cosin余弦距离量化不同数据集间相似性测度的matlab函数(quantize the similarity between data sets using cosin distance)
- 2021-02-02 22:19:59下载
- 积分:1
-
惯性导航中常用的坐标系转换程序
说明: 惯性导航中一些比较常用的坐标系转换的matlab代码。(Matlab code of coordinate system conversion in inertial navigation.)
- 2020-03-21 10:48:24下载
- 积分:1
-
walsh_colour
Walsh wavelet transform to compress/decompress colour image..
- 2013-04-01 20:10:15下载
- 积分:1
-
Learning2
math function for learning methods
- 2013-10-25 03:35:37下载
- 积分:1