Import CSV file and calculate

5 ビュー (過去 30 日間)
Johanna Eppler
Johanna Eppler 2020 年 7 月 9 日
コメント済み: madhan ravi 2020 年 7 月 9 日
Hello,
I got a CSV file with more than one heading, numbers and text cells. How can I import them into a Matlab matrix or array to be able to calculate?
I tried readmatrix(filename) but then the data is stored as text in matlab and I can't calculate anything.
Is there another command? Or how can I convert the data?
Thanks!
Johanna

採用された回答

madhan ravi
madhan ravi 2020 年 7 月 9 日
doc readtable
  2 件のコメント
Johanna Eppler
Johanna Eppler 2020 年 7 月 9 日
With readtable the data is only stored as integers in the matrix. Is there a possibility to store it as float numbers?
madhan ravi
madhan ravi 2020 年 7 月 9 日
format longg % i can’t help further without knowing how the data looks like

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by