Borrar filtros
Borrar filtros

how can i overwrite a csv file und read this file right ??

4 visualizaciones (últimos 30 días)
wenlong Ma
wenlong Ma el 13 de Abr. de 2018
Comentada: Bob Thompson el 13 de Abr. de 2018
hello,all i got a data like this Picture, this is a 1048575*2 double, about time and voltage, but for any values the Point as a comma,so i can't right to read this Data. so how can i read this Data right ? for example,about the time 2.0e-5, the value in my data is as 2,0e-5, then i use csvread or textscan, then i got 2,0(two values..). so anyone have a good idea for this ?
  1 comentario
Bob Thompson
Bob Thompson el 13 de Abr. de 2018
You might try doing a find and replace in the csv file to change the commas to periods. It's going to be pretty tedious because you want to keep some of the commas, but might be better than examining the values in matlab directly.
Alternatively, you could try reading the values as strings instead of numbers and then concatenating, or some similar process.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Import and Export 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