52matlab技术网站,matlab教程,matlab安装教程,matlab下载

标题: 求救 ascii2fts问题 [打印本页]

作者: 每天3点    时间: 2015-10-9 09:38
标题: 求救 ascii2fts问题
我用ascii2fts函数总是出现问题::

>>  a=ascii2fts('SH600000.txt',2,2)
错误使用 ascii2fts (line 357)
Either the data in the text file is incorrect, or file
contents do not correspond to the input information.

The actual error generated when creating the FINTS object is:

将日期字符串转换为日期数字时失败。


我检查了txt中的时间格式,符合ascii2fts中的格式要求   不知为什么会出错


作者: matlab的旋律    时间: 2015-10-9 10:16
日期            开盘            最高            最低            收盘            成交量            成交额

你把这行改成英文的,或者把前两行去掉用 a=ascii2fts('SH600000.txt',0,0)就可以了,具体原因我也不清楚,应该是对中文的支持的问题吧
作者: matlab的旋律    时间: 2015-10-9 11:17
对了最后一行的    数据来源:通达信  也必须去掉





欢迎光临 52matlab技术网站,matlab教程,matlab安装教程,matlab下载 (http://www.52matlab.com/) Powered by Discuz! X3.2