登录
首页 » matlab » DateConvert

DateConvert

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

  • PSO-GM
    微粒群算法结合灰色系统理论进行预测的matlab代码,精确度较高(Particle Swarm Optimization of gray system theory to predict the matlab code, high precision)
    2020-11-07 15:09:49下载
    积分:1
  • pdes
    在matlab中偏微分的典型例子的代码,例如波形方程,热传导方程等()
    2008-04-04 06:09:51下载
    积分:1
  • guzhangzhenduanprogram
    自己编写的比较全面的故障诊断matlab函数程序,包括统计法、时域法、时间序列法、频谱及功率普密度函数、小波分析法程序中有详细的说明。(their preparation of a more comprehensive fault diagnosis Matlab function procedures, including statistics, time domain, time series, and power spectral density function Pronk, wavelet analysis procedures are described in detail.)
    2021-03-31 14:59:09下载
    积分:1
  • Houghmatlab
    包括进行标准Hough变换,检测Hough变换中的n个峰值,并提取峰值直线像素点,绘制直线等(Including the standard Hough transform, Hough transform detection of the n-peak and peak extraction of straight-line pixels and draw a straight line, etc.)
    2007-10-11 11:06:37下载
    积分:1
  • STBC_OFDM_with_Alamouti
    基于Alamouti的STBC-OFDM系统性能分析(Based on Alamouti' s STBC-OFDM system performance analysis)
    2021-04-25 04:38:46下载
    积分:1
  • matlab5_code_mofdm2
    MOFDM code , i m just a newbie, so i can t post anything i done, maybe i post these code i found on internet
    2011-04-24 13:43:30下载
    积分:1
  • Script1-v1
    intento de modelo MM1
    2012-04-13 03:09:37下载
    积分:1
  • clear
    已知一个二维数据,y=f(x), 想使得这个数据绕y轴旋转而成为一个旋转对称的三维数据(A two-dimensional data is known, y=f (x), to make the data around the Y axis and become a rotationally symmetric 3D data)
    2021-05-13 01:30:03下载
    积分:1
  • solar3PI
    采用PR控制策略的光伏发电并网的simulink仿真图(Simulink simulation of grid connected photovoltaic generation using PR control strategy)
    2018-06-05 15:48:17下载
    积分:1
  • seg
    Image Segmentation & Extraction
    2009-04-08 20:04:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载