-
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
-
1_070109134815
关于合成孔径雷达信号仿真中匹配滤波器的一些问题(On synthetic aperture radar signal simulation matched filter some of the problems)
- 2007-11-09 10:40:39下载
- 积分:1
-
Plate_Mesh
The file can be used for plate mesh in finite element alaysis.The code may be further modified for other shapes.
- 2012-04-22 18:12:57下载
- 积分:1
-
butbilinear
利用bilinear函数实现基于双线性Z变换的数字滤波器 (bilinear filter)
- 2010-01-17 10:43:30下载
- 积分:1
-
GLMCandLBPextraction
第一个程序提取了图像灰度级为64的灰度共生矩阵,并计算了能量,熵,对比度,相关性,逆差矩这5个参数.第二个程序可以提取彩色图像的LBP纹理特征,可以提取采样点为8、16、24的统一模式(u2)、旋转不变模式(ri)、统一旋转不变模式(riu2)的LBP值。(The first program to extract a grayscale image GLCM 64, and calculate the energy, entropy, contrast, correlation, inverse difference moment these five parameters. The second program can extract LBP texture feature color images, sampling points can be extracted for 8,16,24 unified mode (u2), rotation invariant pattern (ri), unified rotation invariant pattern (riu2) of LBP values.)
- 2014-10-27 19:24:02下载
- 积分:1
-
MATLABforpowersystem
说明: 关于电力系统的matlab设计的一本书,可以参考。(Matlab power system on the design of a book, you can reference.)
- 2008-11-13 11:22:00下载
- 积分:1
-
SCM
spatial channel model
- 2015-01-19 13:33:04下载
- 积分:1
-
case30
IEEE30 bus 系统的matpower格式的数据格式(IEEE30 bus system matpower format data format)
- 2011-04-28 22:15:25下载
- 积分:1
-
[Matlab.ebooks.MATLAB].(eBook.-.pdf).Matlab.-
说明: matlab 书籍 帮你实现你的梦想(matlab books to help you achieve your dreams)
- 2008-11-11 09:37:35下载
- 积分:1
-
globle_graph_mining
说明: 图挖掘,图聚类
m文件主要包含4个功能:图的生成,图相似度分析,节点符号化,边权挖掘
,详细说明见注释(graph mining, graph clustering)
- 2009-08-31 21:33:51下载
- 积分:1