-
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
-
Librarycodeandfacerecognition
人脸识别代码及人脸库
人脸检测识别的代码和两种不同格式的人脸库(Face recognition code and library code of face detection and recognition of two different formats for face)
- 2010-12-30 20:27:16下载
- 积分:1
-
GUI_adder
采用MATLAB GUI 设计的加法器界面,输入两个数,实现两数相加的功能,适合于刚刚接触的同学。(Using MATLAB GUI interface design adder, enter two numbers, two numbers together to achieve the function, just contact for students.)
- 2013-07-26 16:12:57下载
- 积分:1
-
VC++MATLAB
VC++与MATLAB混合编程及其应用
摘 要 本文详述了在VC++6.0编译环境下如何利用Matlab来实现应用系统的设计和分析,介绍了通过Matlab与VC应用程序连接的常用方法,分析了VC与Matlab的混合编程的步骤,最后通过一个具体实例的实现过程对上述方法进行了应用性介绍。
()
- 2007-07-26 16:45:47下载
- 积分:1
-
matlab6[1].5imageprocess
本书基于matlab6.5的图象处理工具v3.2编写,全面系统地介绍图象处理工具v3.2函数在图象处理个方面的实际应用。(This book-based image processing tools matlab6.5 prepared v3.2, a comprehensive and systematic introduction to image processing tools v3.2 image processing function in the practical application of aspects.)
- 2007-08-01 18:22:10下载
- 积分:1
-
fft
快速傅里叶变换的matlab实现,用于对信号进行频谱分析(Fast Fourier transform matlab implementation for spectral analysis of signals)
- 2011-11-30 00:40:14下载
- 积分:1
-
floc_music
说明: 本程序有传统的MUSIC算法和基于分数低阶矩的MUSIC算法 在alpha稳定分布下的性能仿真(this programme contain the performence of traditonal MUSIC algorithm and FLOC MUSIC algorithm under the alhpa steady distrubution)
- 2010-04-06 19:45:11下载
- 积分:1
-
chap7_16
基于PD增益自适应调节的模型参考自适应控制(based on PD Gain adaptive regulation of MRAC)
- 2007-05-20 16:56:26下载
- 积分:1
-
main
Force Measurement ABS with IMC
- 2012-10-06 10:31:32下载
- 积分:1
-
mafenduozhi
一种应用matlab实现同步码分多址通信的代码,本代码有8个.m文件,互相调用(An application matlab to achieve synchronous code division multiple access communication code, the code 8 m file, calling each other)
- 2013-04-29 15:58:36下载
- 积分:1