-
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
-
left
matlab file for image processing
- 2009-12-06 03:30:23下载
- 积分:1
-
Extractionofthemaincomponents
Matlab提取主分量矩阵。程序设计步骤:
1、去均值
2、计算协方差矩阵及其特征值和特征向量
3、计算协方差矩阵的特征值大于阈值的个数
4、降序排列特征值
5、去掉较小的特征值
6、去掉较大的特征值(一般没有这一步)
7、合并选择的特征值
8、选择相应的特征值和特征向量
9、计算白化矩阵
10、提取主分量()
- 2008-07-01 20:04:50下载
- 积分:1
-
maxeandzishiying
说明: 通过最大熵和自适应灰度阈值方法来对图像进行分割,可得到效果较好的分割图像(By maximum entropy and the adaptive threshold method of image segmentation, image segmentation can be obtained better)
- 2011-03-30 19:32:38下载
- 积分:1
-
examPIO
This work describes the design of a polytopic Unknown Input Observer (UIO) for polytopic Linear Varying Parameter (LPV) descriptor systems. I simulate the example.
- 2013-01-28 23:43:27下载
- 积分:1
-
rsdecoder
matlab code for re decoder.
simple and efficient
- 2010-10-17 05:45:22下载
- 积分:1
-
pattern-recognition
模式识别课件,神经网络,支持向量机,内容很经典(Courseware pattern recognition, neural networks, support vector machine, which is very classic)
- 2011-11-15 15:52:27下载
- 积分:1
-
MATLAB
使用MATLAB软件进行的天线仿真编程,简单易学,希望对大家学习有帮助!
(The use of MATLAB simulation software programming of the antenna, easy to learn, and they hope to help them to learn!)
- 2009-07-03 11:08:35下载
- 积分:1
-
量子粒子群算法的matlab实现,有程序说明
说明: 量子粒子群算发代码,有中文注释,适合初学者编程学习。。。。。。。。。。(Quantum particle swarm algorithm code, with Chinese notes, suitable for beginners to learn programming..........)
- 2021-01-21 16:05:22下载
- 积分:1
-
tvdenoise
The Rudin-Osher-Fatemi total variation (TV) denoising technique poses the problem of denoising as a minimization problem
- 2007-09-11 15:19:54下载
- 积分:1