This is the CSV file I have got however it opens through excel and won't import into Matlab using csvread function.
How would I import this?

 採用された回答

per isakson
per isakson 2014 年 4 月 24 日
編集済み: per isakson 2014 年 4 月 24 日

1 投票

Looks like Excel. Try xlsread

2 件のコメント

Franchesca
Franchesca 2014 年 4 月 24 日
No xlsread doesn't work on it either
per isakson
per isakson 2014 年 4 月 24 日
編集済み: per isakson 2014 年 4 月 24 日
Doc on csvread says
M = csvread(filename)
reads a comma-separated value formatted file, filename. The file can only contain numeric values.
That might explain why you failed with xlsread. Did you try specifying row,col? Doc says
M = csvread(filename,row,col)
reads data from the file starting at the specified row and column. The row and column arguments are zero based, so that row = 0 and col = 0 specify the first value in the file.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2014 年 4 月 24 日
編集済み: Image Analyst 2014 年 4 月 24 日

1 投票

Use readtable():
t = readtable('trial01.csv', 'headerlines', 3);
Or if you have an old version of MATLAB, use dlmread.

タグ

質問済み:

2014 年 4 月 24 日

編集済み:

2014 年 4 月 24 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by