-
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-tiaozhiPcostas
QPSK调制+costas载波同步,为matlab源代码!!!为学习和参考MATLAB通信原理方面调制与解调提供依据!(The QPSK modulation+costas carrier synchronization)
- 2021-04-09 04:19:00下载
- 积分:1
-
task-1
image read & write file in matlab
- 2014-02-18 16:06:34下载
- 积分:1
-
4.3 共振峰估计实验
说明: 共振峰估计实验 matlab. 运行正常(Formant estimation experiment MATLAB)
- 2021-03-19 20:58:06下载
- 积分:1
-
samp
说明: 自适应控制的例程
文件samp.m使用matlab6.5通过(adaptive control routines samp.m documents through the use of matlab6.5)
- 2021-02-23 17:29:40下载
- 积分:1
-
Tpsaat-2000-bh
此源代码,是一个非常适合研究与学习用的电力系统仿真软件源码,是一种基于mattlab的,有非常好的界面、仿真库等等,能进行PF、CPF、OPF等一些计算。
(This source code is a very suitable for research and study used in power system simulation software source code is a matlab-based, and has very nice interface, the simulation database and so on, can P
)
- 2012-05-08 15:15:14下载
- 积分:1
-
MATLAB-Stochastic-Simulation
this is file for discret event system,,
- 2013-03-11 15:40:40下载
- 积分:1
-
papr
相位法峰平比降低技术,包括NEWMAN法和优化法,给出了降低之后的结果.(Phase-based method PAPR reduction techniques, including NEWMAN method and optimization method is given to reduce after the results.)
- 2009-11-04 20:07:58下载
- 积分:1
-
LMS
MATLAB code for LMS algorithm.
- 2009-06-09 04:34:35下载
- 积分:1
-
matlab与vc混编
介绍关于matlab与vc之间的通讯接口,以及如何实现它们之间的转换。(briefed on Matlab and vc communications between the interface, and how to achieve the conversion between them.)
- 2005-05-31 17:11:33下载
- 积分:1