登录
首页 » matlab » DateConvert

DateConvert

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

  • DCT
    说明:  一个基于dct变换的数字水印算法的源程序(A dct-based Digital Watermarking Algorithm source code)
    2011-03-25 20:19:02下载
    积分:1
  • Elevator
    製作4層樓電梯 可以控制在內部開門關門 外部則是上下按鍵使用(4 floors produced inside the elevator door closing can be controlled externally using the up and down keys)
    2014-10-08 21:20:44下载
    积分:1
  • MATLAB_10207058
    对matlab的指令和函数进行了详细说明和解释(On the matlab function instructions and a detailed description and explanation)
    2009-05-25 16:05:19下载
    积分:1
  • SOAmodel
    该程序系统的模拟了半导体光放大器的物理模型,对研究半导体光放大器非常有用!!(The program system to simulate the physical model of semiconductor optical amplifiers, semiconductor optical amplifiers for research is very useful! !)
    2021-04-08 20:29:00下载
    积分:1
  • rdct
    说明:  离散余弦变换的程序,主要对数据的实数部分进行变换(Discrete cosine transform procedure, the main part of the data to transform the real)
    2011-03-06 19:58:44下载
    积分:1
  • GA
    说明:  a method towards Genetic Algorithm
    2014-12-19 16:02:28下载
    积分:1
  • resample
    此程序包括重采样中的最邻近法,双线性内插法,三次卷积法。 (resampling)
    2021-03-13 16:09:24下载
    积分:1
  • HoughObject
    Hi ,it s a simple code
    2009-12-18 21:48:22下载
    积分:1
  • simulinkbasic
    计算机仿真 matlab教程 很好的学习资料 供大家下载(simulink matlab)
    2010-05-21 11:22:13下载
    积分:1
  • sourse
    本程序根据训练好的网络文件ANN.mat预测新的数据文件,得到均方误差,并画出预测数据和原数据的对比图。(the procedures under the trained network file ANN.mat anticipating new data files, to be mean-square error. and the mapping out of the original forecast data and the map data comparison.)
    2021-05-13 00:30:02下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载