登录
首页 » matlab » DateConvert

DateConvert

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

  • Matlabzdlt
    matlab在振动论坛上的相关问题的精华回帖 有些内容讲的相当不错(matlab vibration related issues forum, some of the best of Replies speak pretty good content)
    2010-05-26 23:19:13下载
    积分:1
  • psoLSSVMcgForClass
    对于分类问题,matlab平台下的基于粒子群算法有关LSSVM参数寻优的程序。(For classification problems, the MATLAB platform based on particle swarm algorithm for LSSVM parameters optimization procedure.)
    2012-04-19 19:35:59下载
    积分:1
  • powel58998l
    powel optimization method
    2013-12-01 04:01:05下载
    积分:1
  • the-four-step-ranger-r-k
    四阶经典R-K方法的Matlab程序和newton的matlab程序的实现(Matlab program to achieve the classic fourth-order RK method and newton s matlab program)
    2015-03-21 09:52:38下载
    积分:1
  • QPSK-I-Q
    matlab仿真程序,产生QPSK调制的信号,严格按照QPSK的调制步骤分I路Q路产生信号,最后两路相加,产生已调信号,调制信号随机产生,载波信号是余弦信号。(matlab simulation program to produce the QPSK modulation signal, in strict accordance with the QPSK modulation of the sub-step road Q road I have a signal, the sum of the last two, have been transferred signal, randomly generated modulated signal, carrier signal is a cosine signal.)
    2009-04-02 15:14:23下载
    积分:1
  • xindaorongliang
    介绍了基于MATLAB 的信道编码,主要包括实验操作界面制作以及循环码和卷积码编译码。(Introduced the MATLAB-based channel coding, including experimental production, and user interface code and convolution code decoding cycle.)
    2010-05-13 21:16:48下载
    积分:1
  • circlock
    时钟程序,每个针都用圆圈表示,动态显示时间(program of circle)
    2012-01-14 14:34:28下载
    积分:1
  • fz
    说明:  伺服系统仿真的MATLAB仿真以及结果,可清楚的看出与分析偏差(Servo system of the MATLAB simulation and the simulation results, and analysis shows a clear deviation)
    2009-04-01 15:58:41下载
    积分:1
  • watermark1
    基于MATLAB环境的音频水印白噪声攻击试验源程序(MATLAB-based environment audio watermarking attacks white noise test source)
    2009-05-25 11:25:20下载
    积分:1
  • histogram-processing
    histogram and histogram equalization
    2012-03-28 02:13:24下载
    积分:1
  • 696516资源总数
  • 106627会员总数
  • 16今日下载