-
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
-
STFT
这个是我个人编写的短时傅里叶变换的函数matlab.适用于语音压缩与语音分析.在其中可以加入一些自己的代码,即可改成phase vocoder(this is the STFT function which is wrote by myself(matlab). It is suit for speech compression and analyse. if you add some code in it, it can turn to a phase vocoder straightforward. )
- 2012-05-08 21:31:24下载
- 积分:1
-
bitmap
bitmap representation of image
- 2009-11-10 04:07:47下载
- 积分:1
-
OFDM_CODE
详细介绍了ofdm的发送模块、接收模块及信道估计(Ofdm described in detail the transmission module, receiver module and Channel Estimation)
- 2011-01-04 11:15:26下载
- 积分:1
-
GaborTraining
利用matlab编写的gabor程序,可用于提取特征(Gabor prepared using matlab program can be used to extract features)
- 2010-03-06 17:15:28下载
- 积分:1
-
shengjingwangluo
说明: 神经网络算法应用广泛,该算法在智能控制和统计预测中用的最多,是智能算法中的一大经典。 (Widely used neural network algorithm, the algorithm in intelligent control and statistical forecasts using the most, is the smart one of the major classical algorithm.)
- 2010-04-22 10:39:01下载
- 积分:1
-
RadarToolBox
这是自己正在使用的雷达工具箱(Matlab),自己在使用过程中,添加过很多东西!(This is a new radar toolbox.In this toolbox you can find many new functions)
- 2010-01-19 14:50:57下载
- 积分:1
-
ATP-EMTP
电力系统电磁暂态仿真软件,提供图像界面搭建模型仿真(Power system electromagnetic transient simulation software that provides graphical interface to build simulation models)
- 2014-12-15 23:09:09下载
- 积分:1
-
xianglongyang123
说明: 新的改进方法用MATLAB求解TSP问题(The new improved methods solving TSP problem with MATLAB)
- 2010-04-10 09:32:12下载
- 积分:1
-
matlabreadavi
这是一个matlab读取视频的例子,这种东西我新接触,不知道大家要不要。我觉得不错。(read Matlab video examples, this thing I new contacts do not know if you want to. I think it's good.)
- 2006-06-09 16:27:16下载
- 积分:1