登录
首页 » matlab » DateConvert

DateConvert

于 2010-07-05 发布 文件大小:5KB
0 245
下载积分: 1 下载次数: 6

代码说明:

  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)

文件列表:

DateConvert.m,5545,2010-07-02
license.txt,1330,2010-07-02
TestDateConvert.m,5812,2010-07-02

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Matlab6.0
    Matlab6.0图形图像处理函数。pdf。非源码Matlab6.0 graphics and image processing functions. pdf. Non-source(Matlab6.0 graphics and image processing functions. pdf. Non-source)
    2010-05-31 23:31:16下载
    积分:1
  • MATLAB_graph-theory
    一本讲解如何在matlab上实现各种图论算法的书以及附带的源程序...很全(matlab_graph theory)
    2013-08-30 21:30:37下载
    积分:1
  • lQG
    应用LQG算法对一个一通进行镇定控制,希望对大家有用(The LQG algorithm is applied to a conducting stabilization control, in the hope that useful)
    2012-03-20 15:58:12下载
    积分:1
  • 59305
    Code for threshold in CR.
    2015-01-31 18:01:52下载
    积分:1
  • LZC
    计算一维向量的LZC,已经设置为头文件,可以直接运用(One-dimensional vector of LZC, has been set for the header files, can be applied directly)
    2011-01-07 10:48:40下载
    积分:1
  • ArticulatedMotion
    说明:  用MATLAB编写的meanshift分割图像的方法,供大家参考!(meanshift)
    2010-04-02 11:53:15下载
    积分:1
  • pinpufenxi
    本程序仿真了信号与系统中的频谱混叠,频谱泄漏和栅栏现象,包含三个文件:pinpufenxi.m, pinpufenxi.fig和一份word简介文档。(the process of signal simulation system with a spectrum-aliasing, spectrum leakage and fencing, contains three documents : pinpufenxi.m, pinpufenxi.fig and a brief word document.)
    2006-06-09 00:26:18下载
    积分:1
  • Gabor
    Source code for 2D Gabor filter
    2009-04-04 20:13:23下载
    积分:1
  • MATLABpaper
    说明:   MATLAB 的分布式计算的研究型论文,要学习的人可以借鉴一下,欢迎大家分享啊。 ( MATLAB,everybody,please pay your attention to this file,it s useful for you maybe.)
    2010-04-17 18:50:58下载
    积分:1
  • v_ShortLine_Detect
    说明:  本程序可实现图像边缘检测后的短线段检测和连接(the short line will be detected and linked by using this programm)
    2011-03-28 16:31:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载