登录
首页 » matlab » DateConvert

DateConvert

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

  • matlabandBP
    用MATLAB语言编写的关于神经网络BP算法的程序(Language with the MATLAB neural network BP algorithm on the procedures)
    2010-06-24 09:10:10下载
    积分:1
  • texture_code_and_thesis
    4个收集的vc,matlab纹理检测,纹理分割代码和数篇IEEE纹理分割,纹理缺陷检测论文(Number of Posts IEEE texture segmentation, texture defect detection papers and four personal collection vc, matlab code texture segmentation)
    2010-07-01 16:20:53下载
    积分:1
  • as
    说明:  no but very different
    2011-05-11 03:44:20下载
    积分:1
  • DCF_Data-ack
    标准DCF的仿真代码,只包括基础接入机制(DCF standard simulation code to include only basic access mechanism)
    2014-11-10 17:16:49下载
    积分:1
  • Kalmanf
    二维kalman滤波:基于Matlab,用Kalman滤波实现线性变化的电压测量滤波处理。其中主要参数为:电压测量方差 u = 0.1V;初始电压ub=10V;电压变化率du/dt = -0.02V/s。(Two-dimensional kalman filtering)
    2013-03-23 12:25:25下载
    积分:1
  • Parametres-dun-transformateur
    transformateur power system
    2013-05-21 05:54:29下载
    积分:1
  • TP_Matlab_Master
    for all design of CDMA optique and its solutions
    2012-02-11 00:52:14下载
    积分:1
  • BAnetwork
    说明:  生成BA无标度网络,并统计网络的度分布(网络中新家入的节点会优先选择网络节点度较大的节点链接)。(The BA scale-free network is generated and the degree distribution of the network is counted (the new home nodes in the network will preferentially choose the node links with higher degree of network nodes).)
    2019-03-11 19:56:46下载
    积分:1
  • bookCart
    是一个书城销售软件,提供对书籍的管理与出售!!(Is a bookstore selling the software, provide the management and sale of books! !)
    2010-12-22 20:56:32下载
    积分:1
  • Untitled
    说明:  利用小波变换实现对故障信号的特征提取 构造特征向量(Wavelet transform feature extraction of fault signals structural feature vector)
    2021-04-15 15:08:54下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载