Why does using a comma decimal separator only work for data with more than one column?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!