-
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
-
MIMOchannel
说明: MIMO信道仿真所需的一些小子程序集合,覆盖面比较多(MIMO channel simulation procedures needed for the collection of some kid, more coverage)
- 2010-04-20 10:01:42下载
- 积分:1
-
OFDM-Simulation-Using-Matlab
基于matlab的OFDM 方案的DVB-T实现,对系统实现给予详细描述,并附带相应代码(OFDM Simulation Using Matlab)
- 2011-11-01 19:55:26下载
- 积分:1
-
DFE
判决反馈均衡程序,BPSK均衡,普罗克斯A.B信道(Decision feedback equalization program, BPSK is balanced, providence, a. channel)
- 2021-04-24 17:18:47下载
- 积分:1
-
lingxiangyi
零相移滤波器m函数,优点是克服了滤波器产生的相位滞后,缺点是本仿真不能保证实时性,其原理为输入一次序列,正反各变换一遍。(Zero phase shift filter m function, the advantages of the filter to overcome the phase lag, the disadvantage is that the simulation can not guarantee real-time, the principle of the input sequence, the pros and cons of each conversion.)
- 2016-07-25 11:13:58下载
- 积分:1
-
PAPR1
MATLAB OFDM系统中PAPR计算(MATLAB OFDM PAPR computing systems)
- 2010-06-08 11:23:51下载
- 积分:1
-
Shape_Recognition
The program should recognize objects like circles, rectangles, and squares from the input image.
- 2007-10-23 08:42:32下载
- 积分:1
-
WD
说明: MATLAB,传输矩阵法,仿真光纤光栅温度特性,主要反映不同温度下反射峰的漂移现象(MATLAB,Fiber Bragg Grating Temperature characteristics)
- 2011-08-11 17:22:20下载
- 积分:1
-
GuideWave
选取试探函数求解双脊波导中截止频率和场分布(Selecting trial function to solve cut-off frequency and field distribution in double ridge waveguide)
- 2018-06-18 23:28:42下载
- 积分:1
-
threerayRayleigh
%threerayRayleigh.m
% Last Homework pp. 253 5.31 (Second Edition English)
% Default parameters
% (threerayRayleigh.m%% Last Homework pp. 2 53 5.31 (English Second Edition) para% Default meters%)
- 2006-10-25 09:39:33下载
- 积分:1