【发布时间】:2014-04-24 10:45:29
【问题描述】:
我有一个 csv 文件,其中包含要导入 Matlab 的数据。因为它是我使用的日期和数字的混合体:
data = textscan (fid,'%s%s%n%n%n%n%n',819500,'headerlines',1,'delimiter',',');
不幸的是,第 3-7 列中的数据有 5 位,我只得到 4,这是错误的,比如 1.1234 而不是 1.12345。
我该如何解决这个问题?
怎么了?
【问题讨论】:
-
你真的只得到四个还是这是command line output 可能会被截断?
-
4 这也让我感到惊讶......
-
你试过其他formats for the import吗?
-
否,但会立即尝试。谢谢
标签: matlab