登录
首页 » matlab » DateConvert

DateConvert

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

  • radar_signal_waveform_matlab
    matlab:距离方程、线性调频、雷达波形、动目标显示、脉冲压缩、编码波形、伪随机序列、SAR、RCS(matlab: from the equation, linear frequency modulation, radar waveform, moving target indication, pulse compression, encoding waveform, pseudo-random sequence, SAR, RCS)
    2010-09-17 15:42:48下载
    积分:1
  • simulate
    基于ZigBee的室内视频定位跟踪的指纹定位算法仿真,给出仿真结论(Simulation results based on ZigBee for indoor video location and tracking of fingerprint localization algorithm simulation)
    2021-03-24 08:19:14下载
    积分:1
  • Gaussian_RBF
    Image warping using gaussian radial basis function with adaptive locality patameter.
    2010-08-13 04:50:13下载
    积分:1
  • adaptive nn
    说明:  hand-written RBF code for predicting
    2020-03-31 19:14:00下载
    积分:1
  • MECHENIC
    机械原理的杆件电算,用MATLAB编译的,可以对杆件的长度受力进行分析(Mechanical principle of bars computing, using MATLAB compiler, and can bar the length of the force analysis)
    2009-09-17 21:25:51下载
    积分:1
  • sift
    Sift by David Low from UBC about computer vision features
    2011-02-11 19:29:52下载
    积分:1
  • TL2
    说明:  就是个测试文件,目前还在测试研究中,请多多指教(TEST)
    2010-04-06 10:54:31下载
    积分:1
  • LSSVM-CODE
    利用LSSVM的分类算法中多类分类算法程序,对企业的安全绩效实现评估。(using LSSVM classification algorithmmulti-class classification algorithm procedures to evaluate the security performance of a company )
    2014-08-08 17:48:14下载
    积分:1
  • SFEwienerdens
    通过使用插值计算的方式,计算金融波动过程的维纳现象。(Calculated by using the interpolation method to calculate the Wiener process, the phenomenon of financial volatility.)
    2011-10-22 11:03:18下载
    积分:1
  • lglrczf
    拉格朗日内插法的matlab实现 改进后可用于多种用途(Matlab Lagrange interpolation method can be used to achieve the improved multi-purpose)
    2010-09-30 20:03:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载