登录
首页 » matlab » DateConvert

DateConvert

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

  • snake_demo
    蛇形算法,用于提取物体的轮廓,对于一般的图形(只要边缘的角度不大于90度)识别率还是很高的。(Snake-like algorithm, used to extract the outline of objects, for the average graphics (as long as the edge of the angle of not more than 90 degrees) or very high recognition rate.)
    2007-10-14 20:21:07下载
    积分:1
  • interpolat
    image processing by interpolation
    2009-05-07 23:25:04下载
    积分:1
  • bsvm-multisvm
    说明:  一个多分类支持向量机的文件,可直接运行,并且可以多数据进行多重分类,十分好用(A multi-class support vector machine files can be directly run, and can make multiple multiple data classification, is very easy to use)
    2011-04-07 15:53:48下载
    积分:1
  • derivativeKick
    this mdl file shows the direvative kick of the direvative controller
    2010-02-01 14:20:24下载
    积分:1
  • SVM
    支持向量机源程序代码,c++运行环境,matlab例程(SVM source code, c++ runtime environment, matlab routine)
    2013-03-12 19:58:33下载
    积分:1
  • 侧向和横摆的二自由度车辆模型,输入为方向盘转角
    说明:  侧向和横摆的二自由度车辆模型,输入为方向盘转角,车速,轮路附着系数(2dof vehicle model including lateral and yaw)
    2020-07-04 00:40:01下载
    积分:1
  • question2
    fisher线性分类器训练计算样本错误率,画投影直线(fisher linear classifier training sample error rate calculation, draw a straight line projection)
    2011-06-06 18:01:57下载
    积分:1
  • fdtd2D_TM
    说明:  利用时域有限差分(FDTD)仿真二维(2D)横磁波(TM)的传播,吸收边界条件为完全匹配层(PML)。(The use of finite difference time domain (FDTD) simulation of two-dimensional (2D) transverse magnetic (TM) the spread of absorbing boundary conditions for the perfectly matched layer (PML).)
    2009-08-23 04:31:23下载
    积分:1
  • ExperimentReport3
    说明:  《信号与系统》计算机练习-利用matlab 西安交通大学出版社 实验三("Signals and systems" computer exercises-using Matlab Xi'an Jiaotong University Press Experiment 3)
    2006-04-13 19:01:06下载
    积分:1
  • Perceptron-Using-MATLAB
    Perceptron Using MATLAB
    2013-10-08 14:57:57下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载