我有以下示例数据
Date,Open,High,Low,Close,Volume,Adj Close
10/24/2011,181.51,183.39,180.62,182.25,5890600,182.25
10/21/2011,179.11,181.67,178.75,181.63,8054200,181.63
10/20/2011,178.13,179.24,176.17,177.25,7513800,177.25
我正在将 CSV 文件中的数据读入 MATLAB。
data = csvread('filename.csv','A1:G12542');
我收到以下错误。知道如何规避这个问题吗?
??? Error using ==> dlmread at 145
Header lines must be integer-valued.
Error in ==> csvread at 50
m=dlmread(filename, ',', r, c);
Error in ==> Q11 at 1
data1 = csvread('ibm.csv','A1:G12542');