-
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
-
2139655simulate_echo
ISAR的成像程序,希望大家一起共享,谢谢了(ISAR imaging procedures in the hope to share with everyone, thank you)
- 2011-11-20 16:29:58下载
- 积分:1
-
zjzbkalman
直角坐标系下的单雷达kalman滤波,实现直角坐标系下单部雷达对目标的跟踪。(The single radar Kalman filter in Cartesian coordinates in the Cartesian coordinate system, place an order of radar target tracking.
)
- 2020-07-26 22:28:41下载
- 积分:1
-
msxd_sfusionbridge
基于证据理论的信息融合算法,适用于各种多参数信息融合(Evidence-based theory of information fusion algorithm, applicable to a variety of multi-parameter information fusion)
- 2008-05-05 16:19:57下载
- 积分:1
-
GAfforTSP
TSP的遗传算法实现。本案例是通过遗传算法实现旅行商问题(TSP genetic algorithm. Through genetic algorithm traveling salesman problem)
- 2013-11-12 11:18:19下载
- 积分:1
-
noise-mudulation
根据干扰信号波形样式的不同,压制性干扰可分为噪声调幅干扰、噪声调频干扰、噪声调相干扰。就是用噪声或类似噪声的干扰信号遮盖或淹没有用信号,阻止雷达检测目标信息。它的基本原理是:任何一部雷达都有外部噪声和内部噪声,雷达对目标的检测是在这些噪声中进行的,其检测又是基于一定的概率准则的。一般来说,如果目标信号能量S与噪声能量N相比(信噪比S/N),超过检测门限D,则可以保证一定的虚警概率Pfa的条件下达到可检测目标回波所要求的检测概率Pd,简称为可发现目标,否则便称为不可发现目标。(Blanket Jamming can be divided into different styles according to the interference signal waveform, noise AM interference, noise FM jamming noise phase modulation interference. With noise or noise-like interference signal covered or submerged useful signal prevent radar detection target information from. Its basic principle is: any one radar has the external noise and the internal noise of the radar target detection in these noise detection is based on a certain probability criterion. Generally, compared to if the target signal energy S and noise energy N (signal-to-noise ratio S/N), more than the detection threshold D, you can guarantee reach target echo can be detected under the conditions of a certain false alarm probability Pfa requirements detection probability Pd, referred to can be found in the target, otherwise known as not finding the target.)
- 2012-11-28 20:27:15下载
- 积分:1
-
fenge
文字切割,可用于车牌识别提取 二值化图像后处理 效果还行 可是试试(for image recognition, face recognition and iris recognition, is a rare procedur)
- 2010-07-17 17:02:38下载
- 积分:1
-
20150310FOC
异步电机矢控制的Matlab仿真,转速、转矩波形都相当不错,可以直接作为毕业设计的仿真图
使用matlab2010a(Foc of Simulink)
- 2015-03-10 16:43:58下载
- 积分:1
-
算法求解程序库
4种启发式算法的问题的matlab程序,非常的实用(4 kinds of heuristic algorithm of the matlab program, very practical)
- 2018-01-07 15:45:02下载
- 积分:1
-
2008080115450279
MATLAB教程和一些通俗的实例,为新手上路,更快更好的理解MATLAB服务(MATLAB tutorial and a number of popular examples of the road for the new, faster service and better understanding of MATLAB)
- 2009-06-14 14:43:00下载
- 积分:1