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

 Réponse acceptée

madhan ravi
madhan ravi le 9 Juil 2020

0 votes

doc readtable

2 commentaires

Johanna Eppler
Johanna Eppler le 9 Juil 2020
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Export dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by