登录
首页 » matlab » DateConvert

DateConvert

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

  • PID-CONTROL
    基于水箱液位系统的三阶模型的阶跃响应测试,(three-tank )
    2013-03-18 15:35:37下载
    积分:1
  • image_norm
    实现matlab 界面的人脸检测算法,通过点击人眼中心,实现识别(Achieve matlab interface face detection algorithm, by clicking on the center of the human eye to achieve recognition)
    2014-12-03 15:50:08下载
    积分:1
  • analysis
    immune network algorithm
    2010-01-19 17:05:54下载
    积分:1
  • complex-valued-signal
    这是讲述复值信号的pdf文档,对加深信号的学习会有帮助。(This is about the complex-valued signal pdf documents, the study would help to enhance the signal.)
    2011-10-21 11:37:27下载
    积分:1
  • matched-filter
    对雷达信号实现脉冲压缩处理,并画出图形。 (Achieve pulse compression radar signal processing, and draw graphics.)
    2012-09-23 16:29:07下载
    积分:1
  • Learning2
    math function for learning methods
    2013-10-25 03:35:37下载
    积分:1
  • TCRT1000
    The TCRT1000/ TCRT1010 have a compact construction where the emitting-light source and the detector are arranged in the same direction to sense the presence of an object by using the reflective IR-beam from the object. The operating wavelength is 950 nm. The detector consists of a phototransistor.
    2013-12-19 15:17:55下载
    积分:1
  • pso-clustering-master
    说明:  使用粒子群算法对无线传感器网络进行聚类(PSO)(Particle swarm optimization (PSO) is used to cluster wireless sensor networks)
    2021-01-24 23:28:42下载
    积分:1
  • Matlab-simulation-queue-process
    说明:  排队问题仿真的目的是要寻找服务对象与服务设置之间的最佳配置,保证系统具有最佳的服务效率与最合理的配置,通过matlab平台对单服务台有限队长的排队系统进行 过程仿真 可以协助设计人员分析顾客的需求 从而合理规划出符合实际条件的服务设施(The purpose of the queuing simulation is to find clients and the best allocation between service settings, ensure that the system has the best efficiency and the most reasonable configuration, the single desk by the limited matlab platform captain Simulation of queuing systems can be help designers analyze the needs of customers in order to meet the actual conditions of rational planning of services and facilities)
    2011-03-31 09:45:41下载
    积分:1
  • PLS_Toolbox21
    一个用matlab编写的pls的工具箱实现模式分别和预测,仅供参考(A using matlab pls toolbox to achieve pattern and prediction, respectively, for reference only)
    2011-11-28 21:35:21下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载