-
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
-
total_least_squares_TLS
本源码给出了总体最小二乘方法的matlab实现,开发者可以了解最小二乘方法原理,以及程序实现。(This source gives the total least squares methods matlab realized, developers can understand the principle of least squares methods, and procedures to achieve.)
- 2008-01-12 11:39:28下载
- 积分:1
-
FDA
通过MATLAB编程,将判别分析中引入模糊的概念,实现模糊判别分析算法(Through MATLAB programming, the fuzzy concept is introduced into the discriminant analysis, and the fuzzy discriminant analysis algorithm is realized.)
- 2018-03-23 11:09:35下载
- 积分:1
-
MATLAB_Simulink
MATLAB_Simulink电力系统建模与仿真 于群(MATLAB_Simulink power system modeling and simulation YuQun)
- 2013-08-22 22:24:33下载
- 积分:1
-
hanning-window-of-MATLAB-
基于MATLAB的仿真环境下的各种实现低通滤波器的方案!我们可以在这个基础上好好的进行研究!(Design FIR filter with firls and remez
)
- 2012-09-23 15:47:05下载
- 积分:1
-
file1
program for frequency domain filtering of image
- 2015-03-20 14:54:18下载
- 积分:1
-
New-Text-Document
This is a code for facial recognition. It is implemented in matlab.
- 2014-02-03 13:43:31下载
- 积分:1
-
PAR_autocor
par reduction for ofdm systems using auto correlation of the side lobes
- 2013-11-22 01:18:15下载
- 积分:1
-
beamprop
英文版Rsoft软件 BeamPROP 使用手册,简单详细(ENGLISH Rsoft Beamprop Guiding Manual, simple and detailed.)
- 2015-03-07 13:27:05下载
- 积分:1
-
chuandihanshu
求传递函数的一般格式,通过该程序,我们基本上能写出求任意的传递函数的式子(The general format of the transfer function of demand。Through this program, we can write the formula basically seeking arbitrary transfer function)
- 2013-12-12 21:31:42下载
- 积分:1