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일

0 개 추천

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?
format longg % i can’t help further without knowing how the data looks like

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2020년 7월 9일

댓글:

2020년 7월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by