-
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
-
shiyan2
关于图像的灰度处理,翻转,很不错的源码还有界面。(On the gray image processing, flip, very good source are the interface.)
- 2010-05-05 22:39:38下载
- 积分:1
-
FHSS_DSSS_CDMA
FHSS_DSSS_CDMA的m文件,可以在matlab的simulink上仿真~(FHSS_DSSS_CDMA the m file )
- 2012-05-12 09:56:36下载
- 积分:1
-
matlab
这是一个matlab基于主成分分析的特征提取的源代码(This is a matlab based on principal component analysis, feature extraction source code)
- 2013-11-25 16:20:38下载
- 积分:1
-
data_processing
说明: 故障时频域特征提取,前六阶CEEMDAN+初始信号时频域特征(Fault time-frequency domain feature extraction, first six-order CEEMDAN + initial signal time-frequency domain feature)
- 2020-06-24 07:20:02下载
- 积分:1
-
MATLAB
精通matlab程序,包括遗传算法以及粒子群优化算法程序(Proficient in matlab procedures, including genetic algorithm and particle swarm optimization algorithm program)
- 2013-01-09 16:05:58下载
- 积分:1
-
use-of-matlab3
matlab应用实例,便于对比学习MATLAB的应用以及编程语言的学习。使用中也可以在此基础上进行二次编写,节约时间成本。(the example of the use of matlab)
- 2013-05-09 19:55:00下载
- 积分:1
-
matlab_exercise
说明: 图像处理程序,包括图像锐化,图像边缘检测等(Image processing procedures, including image sharpening, image edge detection)
- 2021-03-30 19:42:57下载
- 积分:1
-
ep2
通过使用matlab软件实现fir滤波器(fir filter)
- 2009-06-07 09:55:03下载
- 积分:1
-
shuoguoshibie
基于图像处理的水果识别代码及其相关算法的matlab仿真(Based on multi-sensor data fusion Fruit-based image processing algorithm and its associated identification code matlab simulation)
- 2014-12-07 14:20:14下载
- 积分:1