-
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
-
3D-linear-elasticity-FEA
3D 线性有限元算法, 可计算模型形变和应力分布(3D linear finite element method, calculate deformation and stress distribution model)
- 2014-11-13 23:02:57下载
- 积分:1
-
ofdm
ofdm调制的matlab程序实现,经过验证是可以实现的,但是具体应用的时候需要自行修改程序中的一些参数(ofdm modulation matlab program, after verification can be achieved, but it requires its own specific application to modify some of the parameters in the program)
- 2013-11-08 10:10:06下载
- 积分:1
-
bcs-master
说明: 贝叶斯压缩感知 用于稀疏信号重建,基于贝叶斯理论(Adaptive compressive sensing, Bayesian model selection, compressive sensing (CS), experimental design, relevance vector machine (RVM), sparse Bayesian learning.)
- 2021-01-12 20:58:48下载
- 积分:1
-
Matlab_butterfilter
基于matlab的低通滤波器代码,可以自动生成VHDL源代码(Based on the low-pass filter matlab code, you can automatically generate VHDL source code)
- 2008-07-15 15:47:51下载
- 积分:1
-
communication
MATLAB产生BPSK信号和FM信号。包括信号的成形滤波,频谱分析和功率谱分析(MATLAB generated BPSK signal and FM signals. Signal shaping filtering, spectrum analysis, power spectrum analysis)
- 2013-03-26 15:47:54下载
- 积分:1
-
功率谱双谱计算
说明: 基于matlab,计算信号功率谱,调用了高阶谱分析工具箱的函数 bispecd 和 bispeci计算信号的双谱(Calculate signal power spectrum and bispectrum based on matlab)
- 2019-04-13 12:16:31下载
- 积分:1
-
TRANSMIT
这是一个关于用matlab仿真ofdm发射机的程序(This is a matlab simulation ofdm transmitter on the use of the procedure)
- 2011-05-09 19:45:54下载
- 积分:1
-
Fuzzy-Edge-Detection-(1)
Fuzzy logic is a form of many-valued logic or probabilistic logic it deals with reasoning that is approximate rather than fixed and exact. Compared to traditional binary sets (where variables may take on true or false values) fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false.[1] Furthermore, when linguistic variables are used, these degrees may be managed by specific functions.
- 2013-03-11 17:03:00下载
- 积分:1
-
floyd
应该已经非常优化的floyd程序。简短、运行时间短、简单易理解。初学者亦可理解。实现任意两点间的最小距离和路径(Floyd should have a very optimized program. Short run time is short, simple and easy to understand. Beginners can understand. To achieve the minimum distance between any two points and path)
- 2010-07-18 19:00:50下载
- 积分:1