-
DateConvert
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)
- 2010-07-05 11:59:46下载
- 积分:1
-
c
说明: 好用的matlab程序,专门针对冲激串的傅立叶变换设计的(welldone,good things to learn matlab)
- 2013-09-25 11:27:31下载
- 积分:1
-
doa_traditional_algorithm_by_vl-master
说明: 传统的波束形成方法,累加延时求和。代码可运行(The traditional beamforming method uses cumulative delay summation. Code can run)
- 2020-06-05 21:13:37下载
- 积分:1
-
109201241DRdemo
说明: 需求响应模型,包括电动汽车,风光出力,储能等,simulink(Demand response model, including electric vehicles, wind output, energy storage, etc., Simulink)
- 2021-03-25 14:39:14下载
- 积分:1
-
intrusion_detection
an IDS system e book
- 2014-01-22 04:32:33下载
- 积分:1
-
fir
matlab中实现有限相应滤波器FIR的程序(matlab limited to achieve the corresponding procedures for FIR Filter)
- 2008-01-03 14:30:29下载
- 积分:1
-
matlab
matlab例子100个例子,内部代码,matlab例子100个例子(matlab examples 100 examples, the internal code, matlab examples 100 examples)
- 2008-01-29 22:53:47下载
- 积分:1
-
4
说明: MATLAB图像处理源程序4:
P0401:用Prewitt算子检测图像的边缘
P0402:用不同σ值的LoG算子检测图像的边缘
P0403:用Canny算子检测图像的边缘
P0404:图像的阈值分割
P0405:用水线阈值法分割图像
P0406:对矩阵进行四叉树分解
P0407:将图像分为文字和非文字的两个类别
P0408:形态学梯度检测二值图像的边缘
P0409:形态学实例——从PCB图像中删除所有电流线,仅保留芯片对象 (MATLAB image processing source code: P0401: Prewitt operator to detect image edge P0402: different sigma value LoG operator image edge detection P0403: Canny operator to detect image edge P0404: image thresholding segmentation P0405: water of line thresholding segmentation image segmentation P0406: matrix quadtree decomposition P0407: image into text and non-text two categories P0408: morphological gradient detection Binary Image Edge P0409: morphological instance,- Images from the PCB Remove all current lines, retaining only chip targets)
- 2013-05-20 23:54:49下载
- 积分:1
-
信息隐藏AMENDE
在matlab中实现文本、音频、图片、视频的隐写和恢复(Implement the text, audio, picture, and video steganography)
- 2020-07-02 00:20:01下载
- 积分:1
-
Deskew-papers
it contains papers of deskewing of different approaches in the pdf
- 2011-01-22 13:36:36下载
- 积分:1