-
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
-
bp
说明: matlab的神经网络,可以用来预测,分类(matlab neural network can be used to predict classification)
- 2013-10-15 21:12:58下载
- 积分:1
-
PAM
该程序完成一个16电平PAM数字通信系统的仿真,并测量了它的误码率。首先产生信息符号序列,该序列被当做4个信息比特一组,将16组符号映射到16个信息幅度。检测器计算距离,输出与真正传输的信息符号序列作比较,然后将差错计数。( This procedure completes a 16 level PAM digital communication system s simulation, and has surveyed its error rate. First has the message digit sequence, this sequence is treated as a 4 information bit group, maps 16 class symbols to 16 information scopes. The detector estimated range, the output and the true transmission s message digit sequence does compares, then counts the mistake. )
- 2010-07-16 19:32:08下载
- 积分:1
-
netcode_opt
its a code for mobile communication markov models
- 2010-10-02 18:32:22下载
- 积分:1
-
radar
雷达工作原理及相应的MATLAB仿真。。。。。。。。。。。。。。。。(about the framework of radar,and some codes)
- 2011-05-05 20:28:47下载
- 积分:1
-
spatial_based-algorithms.m
Spatial based to remove dct artifacts
- 2013-10-20 21:01:56下载
- 积分:1
-
Clustering_Coefficient
复杂网络聚类系数计算的matlab源代码(Complex network clustering coefficients of the matlab source code)
- 2010-03-15 08:57:20下载
- 积分:1
-
VOQ_switch_orginal
本程序是Matlab的Simulink模块程序。模拟虚拟输出队列。是通信建模的入门模块。欢迎大家学习交流(This program is Matlab' s Simulink module program. Analog virtual output queues. Getting Started modules in communications modeling. Welcome to the Learning Exchange)
- 2020-12-27 17:39:02下载
- 积分:1
-
SystemDynamics
说明: 系统动力学的大作业,利用状态方程方法求解二阶系统的频响与时间响应,并作谱分析(Dynamics of large operations, using the state equation method for solving second-order system frequency response and time response, and for spectral analysis)
- 2010-04-17 23:31:01下载
- 积分:1
-
electrical-machinery-simulation
DYNAMIC SIMULATION OF ELECTRIC MACHINERY by Chee-Mun Ong,
published by Prentice-Hall
- 2013-07-10 14:15:38下载
- 积分:1