-
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
-
WriteCellToVTKStructured
将元素写成VTK文件,一般是元胞数组,可以实现VTK数据的读写(Elements written in VTK file general cellular array can achieve VTK data read and write)
- 2013-04-14 21:47:45下载
- 积分:1
-
power_SCIG0
induction generator in isolated grid
- 2015-01-22 01:59:47下载
- 积分:1
-
Desktop
单相逆变器的比例系数(电感与电阻元件)的分岔图仿真M文件(M bifurcation diagram simulation file)
- 2016-03-27 23:12:46下载
- 积分:1
-
Image_Restoration
image comparison and degradation
- 2010-09-28 13:26:20下载
- 积分:1
-
matlab
二维离散余弦变换的图像压缩
直方图均匀化
数字图像矩阵数据的显示及其傅立叶变换
模拟图像受高斯白噪声和椒盐噪声的影响
(Two-dimensional discrete cosine transform image compression histogram equalization of digital image data matrix display and the analog image by the Fourier transform of Gaussian white noise and salt and pepper noise)
- 2010-10-03 21:44:04下载
- 积分:1
-
matlab_example100
matlab 实例100 1-32是:图形应用篇
33-66是:界面设计篇
67-84是:图形处理篇
85-100是:数值分析篇
(100 1-32 is an example matlab: graphics applications is 33-66 Part: Part 67-84 interface design is: graphics processing chapter 85-100 are: Numerical Analysis Section)
- 2009-06-02 21:35:20下载
- 积分:1
-
RadarToolBox
这是自己正在使用的雷达工具箱(Matlab),自己在使用过程中,添加过很多东西!(This is a new radar toolbox.In this toolbox you can find many new functions)
- 2010-01-19 14:50:57下载
- 积分:1
-
sdarticle(1)
孤立词语音识别系统的技术研究,有关孤立词识别的基础和识别的技术研究(Isolated word speech recognition system technology, based on isolated word recognition and identification technology)
- 2011-05-15 13:25:52下载
- 积分:1
-
corrMatching
The matlab code to match using correlation function.
- 2013-09-30 15:41:40下载
- 积分:1