登录
首页 » matlab » DateConvert

DateConvert

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

  • logistics
    阻滞增长模型,基于logistic的混沌效应分析(chaos analysis based on mathmatic model of logistic)
    2009-05-15 13:02:11下载
    积分:1
  • sample
    A motion picture presents a continues phenomena as a sequence of frames. We perceive continuity by "filling in the gaps" and "smoothing out " the missing information. While faster motion requires more frames during a given time period, there is a point where more frames per second yield no further improvement. The "sampling speed" must be fast enough to allow "appropriate averaging of dead times between frames", but need not accommodate motion too fast to be seen by a human. The above description is somewhat analogous to sampling of audio signals. The sampling rate depends on how fast the signals vary (the highest frequency we hear). Nyquist showed that sampling frequency exceeding twice the audio bandwidth is sufficient to include all the signal information, preserving the finest details up to half the sampling rate
    2012-05-27 18:27:12下载
    积分:1
  • leaveflash
    统计模拟(蒙特卡洛法),城市公共汽车作业调度;(Statistical simulation (Monte Carlo method), city buses job scheduling )
    2012-08-30 16:20:15下载
    积分:1
  • position_moon
    输入UTC时间,计算月球在J2000和WGS84坐标系中的位置和速度(Input:UTCtime Output:Position and velocity of moon in J2000 and WGS84)
    2020-12-01 15:49:26下载
    积分:1
  • dpcm
    DPCM编码是预测编码的一种,这是一个用MATLAB实现DPCM编码的方法.(the development of dpcm with matlab,DPCM is a method of cmprises of the image.This is a program of dpcm with the matlab )
    2009-04-26 17:01:05下载
    积分:1
  • MATLAB
    经典matlab算法,好好学习的话,收益很大的 呵呵(perfect matlab materials)
    2010-12-23 15:48:11下载
    积分:1
  • clusterdigit
    数字聚类识别,基于图像模式识别-VC++技术实现书的基础上完成的(Number of cluster identification, image-based pattern recognition technology-VC++ based on the completion of the book)
    2010-03-02 15:03:35下载
    积分:1
  • matlab_wave
    说明:  matlab实现小波分解,包括程序主要函数的介绍程序结果等(Matlab achieve wavelet decomposition, including procedures for the main function on the results of procedures)
    2006-05-10 01:14:22下载
    积分:1
  • grating
    本帖调用自编函数(grating)绘制光栅条纹图像,通过例子讲解水平、竖直、环状和辐射状光栅条纹图像的绘制,用黑白和彩色显示效果给大家视觉上的震撼。调用自编函数时,可以通过成对出现的参数控制条纹的方向、颜色、周期、相位角等。(This post calls self-function (grating) draw grating image, by way of example to explain the horizontal, vertical, circular and radial grating image rendering, with monochrome and color display give you visual shock. Self function call, the parameters can be controlled by pairs stripe orientation, color, period, phase angle.)
    2013-11-17 16:54:31下载
    积分:1
  • me_root_Music
    阵列天线中子空间算法中MUSIC算法的一种改进方法即求根MUSIC算法。(Neutron array antenna space MUSIC algorithm, an improved algorithm method that Root MUSIC algorithm.)
    2013-12-13 10:17:59下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 51今日下载