-
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
-
wind-rose-matlabM-file
智能绘制风玫瑰图。采用十六分,方向的表示方法。(Smart draw wind roses. 16 points the direction of said。)
- 2021-02-19 22:39:43下载
- 积分:1
-
Optical-Holography-with-Matlab
OPTICAL SCANNING HOLOGRAPHY
WITH MATLAB
TING-CHUNG POON
2007
- 2011-08-28 05:28:20下载
- 积分:1
-
ct
说明: 可根据所给参数绘制出头模型图形,并对其进行投影和反投影重建的算法,可正常运行,得到较为理想的结果。(Can be drawn according to the parameters of his early model of graphics, and its projection and back projection reconstruction algorithm, running, get more desirable results.)
- 2010-11-14 14:22:24下载
- 积分:1
-
medfilter
To de-noise pictures the salt-pepper noise using an adaptive median filter
- 2013-03-31 14:19:30下载
- 积分:1
-
NeuralNetwork_BP_Regression
BP neural network regression
- 2012-10-02 02:58:36下载
- 积分:1
-
Networking-Essentials
MCSE Training Guide: Networking Essentials, Second
Edition is designed for advanced end-users, service technicians,
and network administrators with the goal of
certification as a Microsoft Certified Systems Engineer
(MCSE). The “Networking Essentials” exam (70-058)
measures your ability to implement, administer, and
troubleshoot information systems that incorporate
Windows 95 as well as any of the BackOffice family of
products. According to Microsoft, the exam covers only
the networking knowledge and skills common to both
Windows 95 and BackOffice products.
- 2014-02-18 16:49:25下载
- 积分:1
-
hilbert-cPP
实现hilbert变换,经过与matlab比较验证,结果相同(Achieve hilbert transform, through comparison with matlab verification, the same result)
- 2011-09-10 22:14:48下载
- 积分:1
-
modulat16qam
this program will modulate 16QAM with different roll of factor with different BER and plot them
- 2013-12-26 21:06:34下载
- 积分:1
-
Conv-OFDM-QPSK
512FFTOFDM系统仿真,包含卷积码和QPSK调制解调(BER performance simulation of 512 OFDM system, including convolutional code and QPSK)
- 2011-05-26 03:43:55下载
- 积分:1