Why does using a comma decimal separator only work for data with more than one column?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Text Files dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!