登录
首页 » matlab » DateConvert

DateConvert

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

  • channel
    利用信源熵和信源信道之间的互信息求得信道容量(Source entropy and the use of source-channel information to achieve interoperability between the channel capacity)
    2009-03-12 17:38:17下载
    积分:1
  • pf_slam_students
    Iterative Closest Point
    2012-02-05 22:10:07下载
    积分:1
  • jiaochaPSO
    说明:  一篇基于交叉粒子群的改进算法,适于无线传感器的优化路由(A cross-Based Particle Swarm improved algorithm for optimization of routing in wireless sensor)
    2011-03-23 14:57:21下载
    积分:1
  • Kinect_Matlab_version1c
    说明:  KINECT軟件特定測試與範例,利用MEX FUNCTION結合Cpp檔加速效率(KINECT software testing and specific examples, the use of MEX FUNCTION acceleration efficiency with Cpp file)
    2011-03-24 13:14:17下载
    积分:1
  • Matlab-Codes
    荷兰瓦格宁根大学研究的温室小气候模型,包含17个状态变化和8个控制变量,具有较高的模拟精度(a complete greenhouse microclimate model developed by wagenigen, have 17 state variables and 8 control inputs,and posses precise simulation error)
    2013-09-15 14:14:32下载
    积分:1
  • face-recognition
    face recognition using matlab
    2012-02-04 12:46:01下载
    积分:1
  • 0081GUI
    这是一个基于GUI系统。 GUI是在命令行调用通过键入“ui_start”。 GUI是自我解释性。 工具提示是由于在蓝颜色。将光标定位需要这些详细的说明。主要文件 “runsim.m”。在这些模拟的单变量的选择是没有明确给出。这是因为单输入单输出的结果为特定 调制类型显示在每一个用于比较的阴谋。(This is a GUI based system. The GUI is invoked from the command line by typing "ui_start". The GUI is self explanatory. Tool tips are given in blue color. The cursor needs to be positioned on these for detailed explanation. The main file is "runsim.m". In these simulations the SISO option is not explicitly given. This is because the SISO result for a particular type of modulation is shown in every plot for purposes of comparison. This software has been tested on MATLAB version 6.0 and above with signal processing and communication toolbox options.)
    2010-05-13 02:08:34下载
    积分:1
  • motion_src
    Program do detekcji ruchomych na okrazie z kamery video
    2012-06-09 21:35:48下载
    积分:1
  • kod-programu
    transformata fouriera obrazow
    2012-01-04 20:32:38下载
    积分:1
  • Multiface
    数字图像处理project4, 人脸检测,利用matlab自带工具箱(Digital image processing project4, face detection, built using matlab toolbox)
    2014-01-07 13:44:35下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载