I have a 30 rows 10 column dataset.
Data as an excel file. I can read it in matlab with code.
Dataset = xlsread("dataexcel.csv");
fid = fopen('data.csv');
M=textscan(fid,'%s');
fclose(fid);
X=M{1,1}
Which code should I use to read this data? What is the working logic of these codes?

1 件のコメント

Elif Nehir
Elif Nehir 2022 年 12 月 12 日
Thank you.

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

 採用された回答

Image Analyst
Image Analyst 2022 年 12 月 12 日

2 投票

Personally I wouldn't use either of those two. If your data is all numerical I'd use readmatrix. If some of the columns have text strings in them then I'd use readtable.

その他の回答 (0 件)

製品

タグ

質問済み:

2022 年 12 月 12 日

コメント済み:

2022 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by