登录
首页 » matlab » DateConvert

DateConvert

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

  • function
    matlab的源程序码 是众多功能函数的集合(matlab source code is a collection of large number of function)
    2009-04-22 12:27:14下载
    积分:1
  • thintwo
    数字识别,区分图片0到9,共有一百幅图片,一部分用来训练,一部分用来测试(Digit recognition, the distinction between image 0 to 9, a total of one hundred pictures, some for training, in part to test)
    2010-12-28 16:19:21下载
    积分:1
  • matlab-SLM.m
    说明:  在OFDM系统中,为了降低峰均功率比,采用SLM算法,该程序就是相应的Matlab源码(In OFDM system, in order to reduce the PAPR, SLM algorithm used, the program is the appropriate Matlab source)
    2010-04-11 14:57:11下载
    积分:1
  • Airborne-radar-clutter
    不考虑发射波形的机载雷达杂波仿真程序,通过这个程序你可以了解机载MIMO雷达杂波信号的基本模型和仿真方法(Do not consider the transmitted waveform airborne radar clutter simulation program, you can learn through this process airborne MIMO radar clutter signal models and simulation methods)
    2013-04-22 17:00:15下载
    积分:1
  • romp_rec_wang
    这是压缩感知领域最新的romp算法。。。。。。。。。。。。。。。。。(this is the code of romp)
    2013-05-23 23:21:14下载
    积分:1
  • matlab
    matlab介绍,能更好的学习该软件,有经典的算法和例子及介绍等。(matlab introduced to better learn the software, there is a classic example and introduce algorithms and so on.)
    2015-01-07 10:49:24下载
    积分:1
  • c
    说明:  车牌识别,matlab程序的,有一个车牌,一个M文件(che pai shi bie)
    2010-01-10 15:09:25下载
    积分:1
  • knn
    knn算法程序,它是一种基于matlab的模式识别算法,用于文本或其他数据样本的分类。(KNN algorithm based on matlab, the pattern recognition algorithm, the use of classification and identification.)
    2011-06-13 21:49:54下载
    积分:1
  • trajectoire_des_corps
    The third element has been removed the list. The list has now only four elements. It is not possible to delete more than one element at a time in this way
    2015-02-22 03:57:33下载
    积分:1
  • ecg_brar
    50 hz ecg noise remover
    2009-09-10 19:04:36下载
    积分:1
  • 696516资源总数
  • 106432会员总数
  • 11今日下载