-
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
-
common
做机器视觉用的matlab库,适用于自动机器人(Make use of matlab library for machine vision for automated robot)
- 2014-12-21 10:06:51下载
- 积分:1
-
conrecov
比较为基础的相关使用空间域使用两个伪序列块处理 为“0 1”,另一个是“1”水印恢复(Comparison-Based Correlation using block processing in the spatial domain
Uses two PN sequences one for a "0" and another for a "1"
Watermark Recovery)
- 2010-05-31 23:51:15下载
- 积分:1
-
abc
能读取.SLP文件 来提取按照xyz轴旋转的图像(Can read. SLP is the file to extract images in accordance with xyz-axis rotation)
- 2012-05-18 13:09:31下载
- 积分:1
-
Clieduua
计算机械振动烈度,由采集的振振动位移数据来求得可直接使用。
(Calculation of the mechanical vibration intensity, obtained by the vibration vibration displacement data collected can be used directly.)
- 2012-07-24 00:39:57下载
- 积分:1
-
新建文件夹
说明: 基于图像的手势识别算法的源代码,内含GUI界面的设计(Source Code of Image-based Gesture Recognition Algorithms and Design of GUI Interface)
- 2019-05-12 13:34:16下载
- 积分:1
-
turbo_pompa_a_ossigeno_liquido_per_vulcain_24
Turbo Pump - TP
The technology of cryogenic liquid is extremely delicate because of low operating temperature (90
K for liquid oxygen and 20 K for hydrogen) and also for their particular chemical and physical
properties.
- 2013-11-11 04:45:00下载
- 积分:1
-
Untitled1
matlab产生均匀 高斯 锐利等分布并画出直方图(using matlab to get random)
- 2013-11-13 16:40:12下载
- 积分:1
-
SHANGBIAOFENGE
基于matlab将商标与文字分割,选定阀值,先进行次分割,在进一步优化(Matlab-based trademarks and text segmentation, the selected threshold, the first for sub-division, in further optimization)
- 2013-12-02 14:11:22下载
- 积分:1
-
moden-comm-sys-using-matlab
现代通信系统使用matlab版全部章节的matlab仿真源代码(Modern communication systems using matlab version of all sections of source code matlab simulation)
- 2011-09-15 15:50:50下载
- 积分:1