-
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
-
jpeg
jpeg在matlab下的实现详细过程,有需要的朋友请下载(jpeg in matlab to achieve under the process in detail, there is a need friends please download)
- 2008-01-24 14:54:45下载
- 积分:1
-
tianxianjiangyi
西电名师的讲义,有关天线讲义,学习天线知识必备(Western Electric teacher lectures, handouts about the antenna, antenna knowledge necessary to learn)
- 2013-08-12 16:46:01下载
- 积分:1
-
噪声调相干扰信号 jam nf
噪声调相干扰信号的matlab仿真实现,其中包含成像的提取程序(sar jamming signal of noise moding phase)
- 2019-04-18 23:25:23下载
- 积分:1
-
PELoader
PE装载器的例子,处理了导入表、重定位表。(PE loader example, handling the import table, relocation table.)
- 2016-05-07 17:57:01下载
- 积分:1
-
基于粒子群算法的mppt算法GitHub
基于粒子群算法的mppt算法,PSO算法,MPPT最大功率点跟踪(MPPT algorithm based on particle swarm optimization)
- 2020-11-04 17:19:51下载
- 积分:1
-
matlab7-shili
介绍matlab7中各种实例的电子图书,比较不错,对初学者有较大帮助。(Description matlab7 various examples of e-books, relatively good, greater help for beginners.)
- 2009-12-04 15:54:35下载
- 积分:1
-
viterbi_decode
MATLAB下使用viterbi算法进行卷积码的仿真范例。可以用任意配置的卷积码。testConv.m启动仿真,其中用了两种卷积码(一个1/2和一个2/3卷积码)。若要使用硬判决,需修改metric.m文件。其他就没有什么要改的了。解压即可使用。(Under viterbi algorithm using MATLAB simulation examples of convolution codes. Can be used in any configuration of the convolutional code. testConv.m start the simulation, which used two convolution code (a 1/2 and a 2/3 convolutional code). To use a hard decision, modify metric.m file. Nothing else would want to change it. Extract can be used.)
- 2013-12-30 17:53:52下载
- 积分:1
-
TL494-D
DATA SHEET FOR TL 494. CHARACTERISTICS FOR TL 494.
- 2014-10-02 15:59:14下载
- 积分:1
-
TEPML
c++ code for forward modeling in transverse electromagnetic wave propagation.
- 2014-11-06 18:52:11下载
- 积分:1