Borrar filtros
Borrar filtros

Reading complete CSV file with numbers and strings

6 visualizaciones (últimos 30 días)
Benedikt Skurk
Benedikt Skurk el 4 de Mzo. de 2021
Editada: Walter Roberson el 11 de Mzo. de 2021
Hi i hope someone can help me...
I want to read the attached csv file (picture of some columns of it). But matlab always seems to "delete" the first two rows and puts the names in the first row as variable names. But i dont want that. I want to read the full file as a table.
Hope someone can help me with that! I would appreciate that, i am pretty new to matlab.
  2 comentarios
Walter Roberson
Walter Roberson el 4 de Mzo. de 2021
Use readcell()
Or use two read operations, one readcell() asking for the first two lines only, and the other readmatrix() asking for everything after the first two lines.
Walter Roberson
Walter Roberson el 11 de Mzo. de 2021
Editada: Walter Roberson el 11 de Mzo. de 2021
I notice that commas are being used as the decimal point. What is the delimiter between entries? Also which release are you using, as ability to treat comma as decimal point is relatively new.

Iniciar sesión para comentar.

Respuestas (1)

Divya Gaddipati
Divya Gaddipati el 11 de Mzo. de 2021

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by