登录
首页 » matlab » DateConvert

DateConvert

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

  • Matlabbpshenjingwangluo
    介绍了Matlab的神经网络算法,对具体的事列进行了分析和计算。(Introduction of the Matlab neural network algorithms, on specific matters set out an analysis and calculation.)
    2009-03-23 15:13:46下载
    积分:1
  • huiguiguidao
    回归轨道卫星,回归周期1天,倾角分别为60度,周期为4h。(Orbit satellites, one day return period, inclination of 60 degrees and a period of 4h.)
    2021-04-14 20:08:55下载
    积分:1
  • matlab
    another optimization project solve by amin zafarian
    2011-06-12 02:56:15下载
    积分:1
  • matlab-C4
    该源代码主要实现C4.5决策树算法,C4.5是对ID3算法的一种改进,它完善了ID3算法,补充了其算法的一点不足(The source code is the main achievement of C4.5 decision tree algorithm, C4.5 is an improved ID3 algorithm, which improved the ID3 algorithm, the algorithm added a little less than its)
    2011-11-18 11:00:13下载
    积分:1
  • couple
    couple generatrice asychrone
    2012-05-11 18:44:47下载
    积分:1
  • RD
    说明:  实现了SAR成像点目标仿真中中RD算法的零斜视角成像,根据洪文翻译的Ian G. Cumming的《合成孔径雷达成像算法与算法》讲解的算法实现。(SAR imaging point target to achieve a simulation algorithm in RD zero oblique angle imaging, achieved according to Hung translation of Ian G. Cumming &quot synthetic aperture radar imaging algorithm and algorithm&quot to explain the algorithm.)
    2014-09-03 21:02:02下载
    积分:1
  • HHTmatlab
    希尔伯特-黄变换的matlab程序,简洁明了、特别适合初学者。(hirblert huang transfer)
    2012-07-23 13:30:39下载
    积分:1
  • digitalgai
    数字调制信号的产生与识别。产生数字调制信号,并汇出图像,比较直观。 通过分析解调的幅度、频率、相位来判断该信号的调制类型。(Generation and identification of digital modulation signals. Generates a digital modulation signal, and export the image, intuitive. To determine the modulation type of the signal through the analysis of the amplitude, frequency and phase demodulation.)
    2015-04-02 14:22:37下载
    积分:1
  • mk
    说明:  mann kendall 趋势检验matlab程序(mann kendall trend test matlab program)
    2007-08-15 22:40:26下载
    积分:1
  • qq
    说明:  数字图像处理,利用matlab进行压缩,融合,分解,重构等等(Digital image processing using matlab for compression, fusion, decomposition, reconstruction, etc.)
    2009-05-18 08:49:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载