登录
首页 » matlab » DateConvert

DateConvert

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

  • I_14
    基于Matlab的指纹识别代码,有兴趣可以看看(Fingerprint identification code)
    2012-03-23 21:13:06下载
    积分:1
  • slidingmode
    滑膜模型的建立 多输入多输出非线性化的系统线性化程序(sliding model design linearization)
    2012-06-01 10:16:00下载
    积分:1
  • absolutna
    Absolut orientation (Kraus)
    2013-03-18 05:47:08下载
    积分:1
  • Image-feature-extraction
    这个压缩文件主要是一些图像特征提取的实例,具有很强的借鉴意义。(This compressed file is the image feature extraction instance, has a strong reference.)
    2013-05-14 17:23:14下载
    积分:1
  • Digital_Communications_Principles_Approach
    本书将通信技术处理技术用代码的形式表现出来,这样可以通过代码来加深对理论知识的理解。(This book will use communication technology processing code forms, and so can the code to deepen the understanding of theoretical knowledge.)
    2010-07-19 00:26:11下载
    积分:1
  • caidai
    本程序是用processing软件编写的鼠标互动程序,通过移动鼠标可出现有趣动画(The program is written in the mouse interaction processing software program, by moving the mouse, there may be interesting animation)
    2010-12-23 20:10:25下载
    积分:1
  • space_time_trellis_coding
    Space Time Trellis Coding simulation It verifies the BER performace of STTC.
    2010-03-09 14:54:58下载
    积分:1
  • MicromouseBatteries
    This book is for battery specification
    2010-08-23 02:04:44下载
    积分:1
  • MSo_wave.tar
    Multiple Source EM Wave propagation modeling via Finite Differences
    2013-11-14 19:37:55下载
    积分:1
  • ofdm_simulation
    OFDM 的整个流程的 仿真程序 适于初学者学习ofdm的整个过程()
    2007-09-21 10:21:01下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载