Why does using a comma decimal separator only work for data with more than one column?
Mostrar comentarios más antiguos
When using
readmatrix(filename,"DecimalSeparator",",")
on a TXT file with multiple columns such as below, it works as expected.
Before:
0,1 0,2
0,3 0,4
After:
0.1 0.2
0.3 0.4
When the data only has one column, however, the command does not produce the desired results.
Before:
0,1
0,3
After:
0 1
0 3
How can I use "readmatrix" for a one column TXT file with comma decimal separators?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Files en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!