-
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
-
qpsk
QPSK的SIMULINK仿真及参数设置(SIMULINK simulation of QPSK and parameter setting)
- 2009-04-27 20:54:10下载
- 积分:1
-
OFDM
OFDM正交多载波传输技术具有抗无线传输多径效应影响的能力,正逐步成为各种宽带无线数字传输系统(OFDM Orthogonal multi-carrier transmission technology with anti-multipath effects of wireless transmission capacity, is becoming a variety of broadband wireless digital transmission system)
- 2010-05-13 21:24:52下载
- 积分:1
-
music-player
audio player USING MATLAB AND GUI TO RUN THIS FILE USE THE FILE A.M
- 2013-11-22 14:18:43下载
- 积分:1
-
BP神经网络交通预测
bp神经网络预测程序,可用于与小波神经网络对比(BP Neural Network Prediction Program, which can be used to compare with Wavelet Neural Network)
- 2020-06-20 22:40:01下载
- 积分:1
-
OMUD-DS-CDMA-Multi-Path_k_users
Optimum MUD for DS-CDMA in Multi-Path Fading Channel K USERS
- 2014-11-20 11:38:33下载
- 积分:1
-
Bsplinematlab
三次样条插值函数的构造与Matlab实现(Cubic spline interpolation function to achieve the construction and Matlab)
- 2010-06-29 21:20:06下载
- 积分:1
-
Field_Examples
Field Ⅱ超声成像代码,可以进行单个孔径成像和合成孔径成像、加权和不加权仿真。(The calculation of point spread functions is done by placing a point in front of the transducer and then sweeping the beam over the point. This gives the point spread function of the imaging system. Field II can make this calculation for a number of points simultaneously and thereby reveal the dynamic focusing properties of the imaging system. A point phantom has been made for this purpose. It consists of a number of point targets placed with a distance of 5 mm starting at 15 mm from the transducer surface)
- 2020-12-02 09:59:26下载
- 积分:1
-
fuzzypid1
说明: 模糊PID和传统PID的matlab实现(Fuzzy PID and conventional PID of the matlab implementation)
- 2011-04-15 10:06:54下载
- 积分:1
-
sqq
使用此程式可以將yahoo的財務資料讀進matlab內
並且輸出成想要的資料內容
(Use this program to yahoo' s financial data is read into matlab and output to the desired information content)
- 2012-09-08 01:47:56下载
- 积分:1