-
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
-
ImageRecovery.tar
Simple Image Recovery method
- 2009-06-10 21:46:37下载
- 积分:1
-
tiaoping
对脉冲多普勒雷达调频噪声进行仿真,你会发现非常又有有用。(FM noise to simulate the radar you will find that it is very useful.thank you to use it.thank you very much.you must be glad to find it.)
- 2011-05-16 16:25:43下载
- 积分:1
-
xwdw0
低轨卫星侦查确定地面目标位置,整周模糊计算(GRSS system)
- 2013-12-24 15:41:41下载
- 积分:1
-
DSB
DSB双边带调制的systemview仿真系统(DSB double sideband modulation simulation system systemview)
- 2013-09-24 09:25:35下载
- 积分:1
-
Simplex
采用最基本的单纯形法编写了matlab程序,可用于求解各种线性规划问题(Matlab procedures used to prepare the basic simplex method can be used to solve a variety of linear programming problems)
- 2013-11-23 18:02:37下载
- 积分:1
-
blind_deblur(Fergus-R)
基于matlab模糊图像处理的一些m代码。主要有模糊核的计算 以及运动模糊图像的复原等等(M matlab code based on some fuzzy image processing. There are fuzzy core computing and motion-blurred image restoration, etc.)
- 2020-11-04 15:59:52下载
- 积分:1
-
matlabyiqunsuanfa
蚁群算法是一种用来在图中寻找优化路径的机率型算法。是一种求解组合最优化问题的新型通用启发式方法,该方法具有正反馈、分布式计算和富于建设性的贪婪启发式搜索的特点。通过建立适当的数学模型,基于故障过电流的配电网故障定位变为一种非线性全局寻优问题。(Ant colony algorithm is a method used to find optimal path in the graph the probability-based algorithm. Is a combination of optimization problems to solve new general heuristic method, which has a positive feedback, distributed computing and constructive and the greedy heuristic search features. Through the establishment of an appropriate mathematical model, over-current fault-based distribution network fault location into a nonlinear global optimization problem.)
- 2010-05-14 07:58:21下载
- 积分:1
-
myclock
自己编写的一个二维时钟模拟程序,没有定时的功能(I have written a two-dimensional clock simulation program, regular features)
- 2012-06-02 14:33:54下载
- 积分:1
-
Alawcom
A律压缩器子程序,用于matlab中A律压缩器子程序调用(A-law compression subroutine for A-law compressor routine matlab call)
- 2012-06-10 16:06:05下载
- 积分:1