-1

我有一个包含超过 200,000 行和 43 列的大型数据集。有数字字段和字符串字段。我需要使用 matlab 读取这个数据集。我尝试使用“textscan”,但它不适用于整个数据集,因为有一个字符串字段包含一个地址,每个客户端的格式都不同。(地址包含数字和文本)。我只需要数字字段进行分析. 有什么功能可以做到这一点吗?谢谢。

4

1 回答 1

1

Try the interactive import tool or the new readtable function. The table data type is new in R2013b.

There are a number of other ways to read text data, summarized nicely on this MathWorks page. For mixed text/numeric data, your options are limited to textscan and readtable, but you can also use the interactive tool, uiimport. But let's not forget the lower level options using fread/fgetl and fscanf if you really want to get down and dirty.

于 2013-10-09T04:53:03.377 回答