登录
首页 » matlab » DateConvert

DateConvert

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

  • PCAcode
    实现pca功能的完整matlab程序,很好用,源代码(Pca functional integrity of the implementation of the matlab program, very good, and the source code)
    2009-04-08 21:46:56下载
    积分:1
  • besselj_solve2
    说明:  利用matlab求解贝塞尔函数(Using matlab to solve Bessel function)
    2008-09-01 09:59:13下载
    积分:1
  • 2_POWER-QUALITY
    POWER QUALITY IMPROVEMENT IN GRID CONNECTED WINDENERGY SYSTEM USING STATCOM
    2014-09-25 20:09:53下载
    积分:1
  • FNRCGH
    利用菲涅尔衍射计算给定图片的全息图案,程序里包含详细注解方便根据实际情况调整参数。(Computer generated holography using Fresnel diffraction)
    2015-03-26 09:49:28下载
    积分:1
  • power_machines
    应急柴油发电机和异步电动机的simlink仿真,可直接运行(Emergency diesel generators and asynchronous motors simlink simulation can be run directly)
    2015-04-16 21:05:56下载
    积分:1
  • 实验代码
    由于卫星与用户接收机二者的连线方向上存在相对运动,因此引起了载波和伪码的多普勒效应,再加上接收机晶体震荡频率漂移和卫星时钟频漂等原因。接收机实际接收到的卫星载波中心频率一般不再等于信号被发射时的标称频率,这就需要接收机在载波频率一维对信号进行搜索。同时,由于卫星到接收机的距离时刻变化,加上接收机始终相对于GPS时间的偏差又并不固定,因而接收信号的伪码相位值也在改变,所以接收机也要在码相位一维对信号进行搜索。扩频信号的捕获是一个对目标信号频率域和相位域进行的二维搜索过程。(Because of the relative motion between the two of the satellite and the user receiver, the Doppler effect of the carrier and pseudo-code is caused, and the frequency drift of the oscillation of the receiver crystal and the frequency drift of the satellite clock are added. The frequency of the satellite carrier center that the receiver actually receives is generally no longer equal to the nominal frequency of the signal being transmitted, which requires the receiver to search the signal in one dimension of the carrier frequency. At the same time, because the distance between the satellite to the receiver is changed, the deviation of the receiver always relative to the GPS time is not fixed, so the pseudo code phase value of the received signal is also changing, so the receiver also searches for the signal in the code phase. The acquisition of spread spectrum signal is a two-dimensional search process for the frequency domain and phase domain of the target signal)
    2018-06-27 08:59:05下载
    积分:1
  • MLE_123
    Max Likelihood for BL(p,q) series estimation - MATLAB SAMPLE CODE(Max Likelihood for BL(p,q) series estimation- MATLAB SAMPLE CODE)
    2009-11-04 04:01:18下载
    积分:1
  • CGM
    采用matlab编写的利用共轭梯度法求解矩阵方程(Prepared using matlab conjugate gradient method using matrix equation)
    2010-11-27 11:31:49下载
    积分:1
  • sanchongliang
    三冲量控制锅炉水位,三冲量控制锅炉水位三冲量控制锅炉水位(Three-impulse control of boiler water level, the three boilers impulse control impulse control three-level boiler water level)
    2009-05-16 18:11:00下载
    积分:1
  • Predicat_with_RBFNN
    Predication with RBF neural network BY hossein dehghan
    2009-12-21 23:08:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载