-
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
-
capon
最基本的DOA算法--Capon算法的matlab仿真代码,希望对你有用!(Capon algorithm of matlab code for DOA. Hope it ll be a little useful for you!)
- 2010-12-12 20:37:04下载
- 积分:1
-
xiaoboquzao
音频小波去噪程序
不是图像方面的,不要下错了(Audio wavelet denoising process is not the image area, not under the wrong)
- 2010-07-31 17:17:00下载
- 积分:1
-
anim
利用matlab制作红色小球沿一条封闭螺线运动的实时动画,对制作动画很有启发性(Matlab produced using the red ball along a closed spiral movement in real-time animation, the animation was very instructive)
- 2007-12-12 09:20:12下载
- 积分:1
-
Data_Driven_Fitting
数据驱动自适应程序,可用于处理各种时间序列(Can be used to deal with a variety of time series data-driven adaptive)
- 2011-06-28 10:20:40下载
- 积分:1
-
nonlinear
数学建模中常用的非线性规划程序,经整理,有注释,可实现(Commonly used mathematical modeling of gray prediction program, collated comment)
- 2013-05-19 22:17:22下载
- 积分:1
-
SNorm
MATLAB FUZZY BASIC OPERATIONS
- 2014-02-18 00:09:50下载
- 积分:1
-
Main
混沌工具箱ver.2.0,程序没问题,可以用。有c-c法求时延和嵌入维数的,求最大李雅普诺夫指数的等。(Chaos Toolbox ver.2.0, the program is no problem, you can use. There cc method for delay and embedding dimension, for the largest Lyapunov exponent and so on.)
- 2013-11-28 16:48:13下载
- 积分:1
-
pub-mb_4367
MOBILE ROBOT PREDICTIVE TRAJECTORY TRACKING
- 2015-01-06 04:21:38下载
- 积分:1
-
Matlab-Optimization-tools
基于Matlab软件中的优化算法和优化工具,针对风力机翼型通用型线集成表达式建立了优化数学模型。以风力机翼型的最大升阻比为优化设计目标函数,翼型形状控制方程的系数为设计变量,翼型的厚度和弯度为约束条件,设
计得到了相对厚度为18%的风力机翼型,并对其性能进行了计算分析。研究结果拓宽了风力机叶片翼型的设计思路和设计方法。(Based the Matlab software optimization algorithm and optimization tools for the integrated expression of the general profile of the wind turbine airfoil optimization model. Wind turbine airfoil maximum lift-drag ratio for the optimal design objective function coefficients of the equation of the airfoil shape control as design variables, airfoil thickness and curvature constraints, the design has been the relative thickness of 18 of wind turbine airfoil , and its performance is calculated and analyzed. The findings broaden the wind turbine blade airfoil design ideas and design methods.)
- 2020-12-18 21:39:10下载
- 积分:1