-
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
-
my_fft
Fast Fourier Transmission in Matlab
- 2009-03-14 12:08:37下载
- 积分:1
-
smallbox_1.9
SMALLbox是一种新型的基础框架采用自适应处理信号稀疏结构的表示。其主要目的是成为一个SMALLbox考验地探索新大概很好的方法来获得内在稀疏数据驱动模型,它是可以做到的应付大规模、复杂的数据资料。(
SMALLbox is a new foundational framework for processing signals using adaptive sparse
structured representations. The main aim of SMALLbox is to become a test ground for exploration
of new provably good methods to obtain inherently data-driven sparse models, which are able to
cope with large-scale and complicated data.)
- 2012-04-26 20:57:45下载
- 积分:1
-
Sound-Wave
Matlab 模拟声波传数,包括基带调制、数字上变频、数字下变频、滤波、译码等(Matlab to simulate the sound wave number, including baseband modulation, digital frequency conversion, digital frequency conversion, filtering, decoding, etc)
- 2014-08-20 17:15:19下载
- 积分:1
-
hilbert
Discrete-time analytic signal via Hilbert transform.
X = HILBERT(Xr) computes the so-called discrete-time analytic signal
- 2015-02-11 20:18:14下载
- 积分:1
-
Wavelet-
地震子波波形显示及一维地震合成记录,以雷克子波为例(Seismic Wavelet and synthetic seismogram)
- 2020-10-27 15:19:58下载
- 积分:1
-
4
说明: matlab中的关于解方程方面的例子和程序(matlab on solving equations in terms of examples and procedures)
- 2010-10-14 18:47:08下载
- 积分:1
-
function
这可是有关通信方面的MATLAB非常好的资料,而且很权威,是我们学习的号东西,里面有关通信方面的M文件十分齐全(This is related to communications MATLAB very good information, and are the authority, is something we can learn its inside on the communications papers are full of M)
- 2008-12-31 08:20:05下载
- 积分:1
-
bandstoplicheng
一个很好带阻滤波器的设计,并给出了用来滤除工频干扰的实例(A good band stop filter and filter frequency is given to an instance of interference)
- 2010-07-18 18:21:28下载
- 积分:1
-
vsc
说明: 用matlab中详细搭建的VSC的模型,可以使用,并且很好使用(Matlab detailed VSC model, can be used, and very good use)
- 2021-04-28 22:08:43下载
- 积分:1