登录
首页 » matlab » DateConvert

DateConvert

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

  • R
    说明:  传统的脉搏血氧R值提取大多采用脉搏波的峰谷值法.一个脉搏周期的峰谷值往往不能反映真实的R值,因此通常采用多个周期峰谷值的平均来提高R值的精度。提供了移动平均算法进行脉搏血氧信号特征值提取源码。(Traditional pulse oximetry R value extraction most of the peak value of the pulse wave method. A peak value of pulse cycles often do not reflect the true R value, usually more than one cycle, the average of the peak value to improve the accuracy of the R value. Moving average algorithm to extract the source pulse oximeter signal eigenvalue.)
    2012-04-24 18:58:14下载
    积分:1
  • 2fsk
    2FSK频率选择法调制及相关检测、包络检测的matlab程序,供仿真参考(2FSK modulation frequency selection method and related testing, envelope detection matlab program for the simulation of reference)
    2013-10-29 20:14:44下载
    积分:1
  • perfect2
    2016年国赛建模A题中第1题风速为24m/s时的一种求解方法,画出了锚链的形状。(a solution to the first question in the wind speed of 24m/s in 2016 National Modeling Competition)
    2016-11-09 13:43:20下载
    积分:1
  • imagematch
    用相位相关方法做的图象拼接程序,可进行图象拼接(Phase correlation method used to do image stitching process, images can be spliced)
    2008-02-02 22:24:59下载
    积分:1
  • Occam1DCSEM_v3.13
    说明:  可以进行大地电磁计算;Occam反演;一维反演(it can be used in CSEM occam inversion,which has great advantage.)
    2021-04-04 17:19:04下载
    积分:1
  • bifurcacao
    model bifurcacao matlab
    2010-07-14 05:46:51下载
    积分:1
  • Grid_Connected_Fuel_Cell
    基于simulink编写的燃料电池并网模型(Prepared based on simulink model of a fuel cell and network)
    2020-11-21 10:39:37下载
    积分:1
  • pingjunzhouqitufa
    频谱周期图的MATLAB程序,主要对信号进行加窗处理,包括海明窗等等(Periodogram spectrum)
    2016-09-07 21:32:48下载
    积分:1
  • kalman
    联邦卡尔曼很好的文献,里面是联邦卡尔曼的结构设计,对于编写联邦卡尔曼程序的编写有帮助(Federal Kalman good literature, which is the structural design of the Federal Kalman, Kalman federal program to prepare for writing helpful)
    2015-01-03 10:57:45下载
    积分:1
  • romp_rec_wang
    这是压缩感知领域最新的romp算法。。。。。。。。。。。。。。。。。(this is the code of romp)
    2013-05-23 23:21:14下载
    积分:1
  • 696518资源总数
  • 104384会员总数
  • 26今日下载