【发布时间】:2016-04-02 19:11:21
【问题描述】:
我有一个问题,当我将 CSV 数据集导入 Matlab 时,分隔符不起作用,Matlab 在一列中显示所有内容 this is a picture of the problem
【问题讨论】:
-
你是如何加载数据集的?
-
使用导入向导
我有一个问题,当我将 CSV 数据集导入 Matlab 时,分隔符不起作用,Matlab 在一列中显示所有内容 this is a picture of the problem
【问题讨论】:
使用
data = dlmread('path/to/filename', ',');
如果您希望将数据作为表格(这很方便),请使用
data = readtable(('path/to/filename', 'delimiter', ',', 'readvariablenames', true);
每一项都假定您的数据格式正确。也就是长方形,列的类型一致
【讨论】: