登录
首页 » matlab » DateConvert

DateConvert

于 2010-07-05 发布 文件大小:5KB
0 238
下载积分: 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 个回复

  • pyramid
    边缘检测,自己做的高斯金字塔和拉普拉斯金字塔,matlab2009(gaussian and laplasial pyramid)
    2010-11-05 10:34:33下载
    积分:1
  • Puma-3D-linksdata-extract-in-same-folder-as-Puma3
    PUMA 3D Links Data Extract in the Same Folder as PUMA 3D
    2014-12-12 03:50:45下载
    积分:1
  • Robust_Capon0
    自适应波束形成SCB,NICCB和NECCB算法比较(comparison ofSCB,NICCB and NECCB)
    2016-03-13 14:40:58下载
    积分:1
  • yunmoxing-AHP
    云模型在AHP中的应用,1-9重要度比较,云模型的倒数标度(Application of cloud model in AHP, comparison of 1-9 importance degree, reciprocal scale of cloud model)
    2020-09-26 22:47:46下载
    积分:1
  • filter
    matlab的滤波器,有菜单选择,高通,带通和低通,并且内有一个音频文件(matlab filter, there is the menu selection, high-pass, band-pass and low pass, and inside there is an audio file)
    2009-03-10 20:44:06下载
    积分:1
  • MATLAB
    MATLAB及在电子信息课程中的应用(代码)(MATLAB and in the course of electronic information in the application (code))
    2009-10-28 22:22:36下载
    积分:1
  • Haykin
    Dan Simon, Training radial basis neural networks with the extended Kalman Filter, 2001. Article on RBF neural networks, with examples, source programs on Matlab
    2009-12-17 19:46:03下载
    积分:1
  • fringeproc-master
    说明:  InSAR主从影响选择。可以用于InSAR处理(Is InSAR master-slave influence selection. Can be used for InSAR processing)
    2020-06-17 06:00:02下载
    积分:1
  • wavele(MATLAB)
    数字图像处理(matlab版)小波变换程序(wavelet)
    2009-09-04 16:30:19下载
    积分:1
  • matlabcodeset
    matlab指令集,一般常用的指令都包涵(matlab code set)
    2012-03-20 22:31:25下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载